Last active
May 16, 2018 12:31
-
-
Save finswimmer/783f18d979f20461653749a9b3c0362e to your computer and use it in GitHub Desktop.
Answer on biostar question 314928
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
from BCBio import GFF | |
in_file = "test.gff" | |
out_file = "test.parse.gff3" | |
limit_info = { | |
'gff_id': ["1"], # chromosome 1 | |
'gff_type': ["ncRNA"] # get non coding RNA | |
} | |
with open(out_file, "w") as out_handle, open(in_file) as in_handle: | |
GFF.write(GFF.parse(in_handle, limit_info=limit_info), out_handle) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://www.biostars.org/p/314928