Comments (2)
Yes that does make sense. Hand annotation is annoying adding the qualifiers.
I just now thought about subclassing Target
to change that __init__
behavior. That alone may allow my script to be usable. And would not require any trouble on your part. I will have to see.
At this point, we don't want to change it entirely to avoid breaking backward-compatibility with what we've already done.
Yes I can see this as well, but the subclassing solution may make this moot.
However, I think it would be possible to pretty easily add few lines of code to the init method of Targets that adds a parameter that specifies if the name is read from the feature type (as currently) or some other Genbank field given by that parameter.
Yes I was also thinking of this as a solution that would default to the old behavior but allow for adjustment.
Are you interested in making a pull request to do this?
I think that I could do this pretty easily, and would be honored to contribute. I will start playing.
Alternatively, if you want to post an example of a Genbank for which you'd like to parse a different field (e.g., name), then I can try to do this at some point soon.
If need be I can post something but I think that you have given me enough here to get traction on the problem. Thank you.
I will take a look and submit a PR if I am able to get it to work.
Thanks again for this library.
from alignparse.
Yes, I agree with your comment and understand why this could be problematic.
We originally designed this way as we were initially mostly "hand-annotating" Genbank maps and it is easier to set the type of a feature than the names as I had a hard time understanding exactly how those were standardly specified in a Genbank file. But I agree this creates the problem you mention.
At this point, we don't want to change it entirely to avoid breaking backward-compatibility with what we've already done.
However, I think it would be possible to pretty easily add few lines of code to the __init__
method of Targets
that adds a parameter that specifies if the name is read from the feature type (as currently) or some other Genbank field given by that parameter.
Are you interested in making a pull request to do this? Alternatively, if you want to post an example of a Genbank for which you'd like to parse a different field (e.g., name), then I can try to do this at some point soon.
from alignparse.
Related Issues (20)
- expand README HOT 2
- JOSS paper HOT 2
- dependencies for mybinder HOT 1
- YAML + FASTA or YAML only input files HOT 2
- Version requirement for minimap2? HOT 2
- Support for compressed input files HOT 2
- Lassa virus example/other aligners in manuscript HOT 2
- PySAM problems with Python 3.8 + OS X HOT 5
- Citation/acknowledgements HOT 1
- parse passes from `ccs` version 5.0 FASTQ ccs files HOT 1
- Strand alignment with OPTIONS_VIRUS_W_DEL
- What do {'spacer', 'termini3', 'gene', 'termini5'} each represent? HOT 1
- MyBinder Connection Failed HOT 2
- `pandas` has deprecated `append`
- minimap2 module: retain ML:B tag HOT 3
- f"string=" issue HOT 2
- possible bug with indel consensus? HOT 4
- Probably a bug in minimap2 error handling? HOT 2
- Read accuracy vs. empirical accuracy HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from alignparse.