Created
October 21, 2017 12:05
-
-
Save wdecoster/ee355bda19e384e3f8a4bb68bd877a07 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def stream_fastq_full(fastq, threads): | |
| ''' | |
| Extract from a fastq file: | |
| -readname | |
| -average and median quality | |
| -read_lenght | |
| ''' | |
| with cfutures.ThreadPoolExecutor(max_workers=threads) as executor: | |
| for results in executor.map(extract_all_from_fastq, SeqIO.parse(fastq, "fastq")): | |
| yield results |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment