Parse a FASTQ file into a Tensor

This commit is contained in:
coolneng 2021-05-06 20:34:39 +02:00
parent 62fcf0974d
commit eb072836a1
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
3 changed files with 7 additions and 0 deletions

0
src/__init__.py Normal file
View File

1
src/constants.py Normal file
View File

@ -0,0 +1 @@
ALLOWED_BASES = "ACGT-"

6
src/model.py Normal file
View File

@ -0,0 +1,6 @@
from tensorflow_io import genome
def parse_data(filepath):
HVR = genome.read_fastq(filename=filepath)
return HVR.sequences, HVR.raw_quality