-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better handling of separator directives and feature selection #75
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,4 +58,5 @@ def main(args): | |
minperc=args.min_perc | ||
) | ||
writer = tag.writer.GFF3Writer(locusstream, args.out) | ||
writer.complex_separators = False | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here, we want separators to mark boundaries between loci, not between features within a locus. |
||
writer.write() |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,8 +103,6 @@ def __repr__(self): | |
if string != '': | ||
string += '\n' | ||
string += str(feature) | ||
if self.is_complex: | ||
string += '\n###' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is now delegated to the GFF3 writer. |
||
return string | ||
|
||
def __len__(self): | ||
|
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
##gff-version 3 | ||
##sequence-region chr8 1 100000 | ||
chr8 CpGAT gene 72 5081 . - . ID=gene1;Name=chr8.g1 | ||
chr8 CpGAT mRNA 72 5081 . - . ID=mRNA1;Parent=gene1;Name=chr8.g1.t1;index=1 | ||
chr8 CpGAT exon 72 167 . - 1 Parent=mRNA1 | ||
chr8 CpGAT CDS 72 167 . - 0 ID=CDS1;Parent=mRNA1 | ||
chr8 AEGeAn::CanonGFF3 intron 168 348 . - . Parent=mRNA1 | ||
chr8 CpGAT exon 349 522 . - 1 Parent=mRNA1 | ||
chr8 CpGAT CDS 349 522 . - 0 ID=CDS1;Parent=mRNA1 | ||
chr8 AEGeAn::CanonGFF3 intron 523 610 . - . Parent=mRNA1 | ||
chr8 CpGAT exon 611 702 . - 1 Parent=mRNA1 | ||
chr8 CpGAT CDS 611 702 . - 2 ID=CDS1;Parent=mRNA1 | ||
chr8 AEGeAn::CanonGFF3 intron 703 4915 . - . Parent=mRNA1 | ||
chr8 CpGAT exon 4916 5081 . - 1 Parent=mRNA1 | ||
chr8 CpGAT CDS 4916 5081 . - 0 ID=CDS1;Parent=mRNA1 | ||
chr8 CpGAT gene 10538 11678 . - . ID=gene2;Name=chr8.g2 | ||
chr8 CpGAT mRNA 10538 11678 . - . ID=mRNA2;Parent=gene2;Name=chr8.g2.t1;index=1 | ||
chr8 CpGAT three_prime_UTR 10538 10746 . - . Parent=mRNA2 | ||
chr8 CpGAT exon 10538 11678 . - 1 Parent=mRNA2 | ||
chr8 CpGAT CDS 10747 11577 . - 0 Parent=mRNA2 | ||
chr8 CpGAT five_prime_UTR 11578 11678 . - . Parent=mRNA2 | ||
chr8 CpGAT gene 22053 23448 . + . ID=gene3;Name=chr8.g3 | ||
chr8 CpGAT mRNA 22053 23448 . + . ID=mRNA3;Parent=gene3;Name=chr8.g3.t1;index=1 | ||
chr8 CpGAT five_prime_UTR 22053 22166 . + . Parent=mRNA3 | ||
chr8 CpGAT exon 22053 22550 . + 1 Parent=mRNA3 | ||
chr8 CpGAT CDS 22167 22550 . + 0 ID=CDS2;Parent=mRNA3 | ||
chr8 AEGeAn::CanonGFF3 intron 22551 22650 . + . Parent=mRNA3 | ||
chr8 CpGAT CDS 22651 23022 . + 0 ID=CDS2;Parent=mRNA3 | ||
chr8 CpGAT exon 22651 23448 . + 1 Parent=mRNA3 | ||
chr8 CpGAT three_prime_UTR 23023 23448 . + . Parent=mRNA3 |
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
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here, we want separators to mark boundaries between loci, not between features within a locus.