Skip to content
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
merged 4 commits into from
Jun 27, 2019

Conversation

standage
Copy link
Owner

@standage standage commented Jun 27, 2019

This update mashes together two changes. First, it gives finer control to how and when separator directives are printed after complex features. Second, it enables selection of multiple feature types simultaneously in the tag.select.features function and updates the bae module to correctly use this function in traverse mode.

  • Full test coverage? Any additional tests that could easily be added?
  • API documentation up-to-date? Docstring examples?
  • Is the CHANGELOG up-to-date?

@@ -53,4 +53,5 @@ def main(args):
)
evalstream = tag.bae.eval_stream(locusstream)
writer = tag.writer.GFF3Writer(evalstream, args.out)
writer.complex_separators = False
Copy link
Owner Author

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.

@@ -58,4 +58,5 @@ def main(args):
minperc=args.min_perc
)
writer = tag.writer.GFF3Writer(locusstream, args.out)
writer.complex_separators = False
Copy link
Owner Author

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.

@@ -103,8 +103,6 @@ def __repr__(self):
if string != '':
string += '\n'
string += str(feature)
if self.is_complex:
string += '\n###'
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is now delegated to the GFF3 writer.

@codecov-io
Copy link

codecov-io commented Jun 27, 2019

Codecov Report

Merging #75 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #75   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          23     23           
  Lines        1269   1278    +9     
  Branches      290    292    +2     
=====================================
+ Hits         1269   1278    +9
Impacted Files Coverage Δ
tag/feature.py 100% <ø> (ø) ⬆️
tag/cli/locuspocus.py 100% <100%> (ø) ⬆️
tag/cli/bae.py 100% <100%> (ø) ⬆️
tag/bae.py 100% <100%> (ø) ⬆️
tag/select.py 100% <100%> (ø) ⬆️
tag/writer.py 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 36c1a9b...39d57a8. Read the comment docs.

@standage standage merged commit c78a163 into master Jun 27, 2019
@standage standage deleted the sepdir branch June 27, 2019 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants