Parse a FASTQ file into a Tensor
This commit is contained in:
0
src/__init__.py
Normal file
0
src/__init__.py
Normal file
1
src/constants.py
Normal file
1
src/constants.py
Normal file
@@ -0,0 +1 @@
|
||||
ALLOWED_BASES = "ACGT-"
|
||||
6
src/model.py
Normal file
6
src/model.py
Normal 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
|
||||
Reference in New Issue
Block a user