Skip to content

Instantly share code, notes, and snippets.

@kescobo
Created June 5, 2020 19:38
Show Gist options
  • Save kescobo/cc406f69e20d8c585acb2d260fb4f6fd to your computer and use it in GitHub Desktop.
Save kescobo/cc406f69e20d8c585acb2d260fb4f6fd to your computer and use it in GitHub Desktop.
Code for question 8 of pre/post test.
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