Created
June 5, 2020 19:38
-
-
Save kescobo/cc406f69e20d8c585acb2d260fb4f6fd to your computer and use it in GitHub Desktop.
Code for question 8 of pre/post test.
This file contains 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
open("GCH3000.fasta", "w") do io | |
for line in eachline("GCH3000.fastq") | |
if startswith(line, "@") | |
line = ">" * line[2:end] | |
elseif any(c-> !in(c, ['A','T','G','C'], line) | |
continue | |
end | |
write(io, line*'\n') | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment