Document the data parsing function

This commit is contained in:
coolneng 2021-05-11 20:41:54 +02:00
parent 34fefed3ed
commit 6201e35e99
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 6 additions and 1 deletions

View File

@ -1,6 +1,11 @@
from tensorflow_io import genome
from tensorflow import Tensor
from typing import Tuple
def parse_data(filepath):
def parse_data(filepath) -> Tuple[Tensor, Tensor]:
"""
Reads a FASTQ file and returns the sequences and the qualities
"""
HVR = genome.read_fastq(filename=filepath)
return HVR.sequences, HVR.raw_quality