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

All scripts should output the sequence format they take in (FASTA/FASTA, FASTQ/FASTQ) by default #46

Closed
ctb opened this issue Apr 20, 2013 · 12 comments

Comments

@ctb
Copy link
Member

ctb commented Apr 20, 2013

Several scripts don't (didn't) do this. Fixing one by one.

@ctb ctb closed this as completed in adcd1c7 Apr 20, 2013
@ctb
Copy link
Member Author

ctb commented Apr 20, 2013

This is probably still an issue for a number of things in scripts/.

@ctb ctb reopened this Apr 20, 2013
@emcd
Copy link
Contributor

emcd commented Apr 20, 2013

Related to issue #39.

@suryasaha
Copy link

Has this issue been addressed for filter-abund.py? Thanks

@ctb
Copy link
Member Author

ctb commented Apr 20, 2013

Yes. See recent posts on Khmer list.


C. Titus Brown, ctb@msu.edu

On Apr 20, 2013, at 12:52, suryasaha notifications@github.com wrote:

Has this issue been addressed for filter-abund.py? Thanks


Reply to this email directly or view it on GitHub.

@ctb
Copy link
Member Author

ctb commented Aug 21, 2013

The only remaining scripts that switch from FASTQ to FASTA are the partitioning scripts -- in particular, the function annotate-partitions.

@mr-c
Copy link
Contributor

mr-c commented Apr 1, 2014

@ctb What about annotate-partitions?

@mr-c
Copy link
Contributor

mr-c commented Apr 1, 2014

Ah, this autoclose was from me pushing the slimmer repo to github.

@mr-c mr-c reopened this Apr 1, 2014
@ctb
Copy link
Member Author

ctb commented Apr 1, 2014

On Tue, Apr 01, 2014 at 10:29:28AM -0700, Michael R. Crusoe wrote:

@ctb What about annotate-partitions?

I believe it does, but we don't have any tests for FQ. => issue.

--t

C. Titus Brown, ctb@msu.edu

@mr-c mr-c modified the milestones: 1.1+ Release, 1.0 release Apr 2, 2014
@camillescott
Copy link
Member

Note: the record object returned by readparser is slightly different than that returned by screed, in that it has the 'accuracy' attribute but keeps it empty for fasta, while screed simply omits the 'accuracy' attribute for fasta record objects. Related: #328

@mr-c
Copy link
Contributor

mr-c commented Jan 14, 2015

One approach (to the issue @camillescott raised) would be to override __getattr__ either in a Python wrapper of the CPython implementation of the ReadParser reads or by providing a custom tp_getattr on the CPython side: https://docs.python.org/2.7/extending/newtypes.html#type-specific-attribute-management

@ctb
Copy link
Member Author

ctb commented Feb 20, 2015

See #769

@ctb
Copy link
Member Author

ctb commented Jun 12, 2015

All scripts/code now handles this properly; in particular, annotate_partitions is tested in test_scripts.py:test_extract_partitions_fq(). Closing.

@ctb ctb closed this as completed Jun 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants