Comments (27)
Which Biopython do you use? You must use version <=1.77
I have made some fix in speed
branch for this, but I'm waiting feedback before to merge
from emblmygff3.
I have 1.78 installed through conda.
Will the update allow this version or do I have to install 1.77 instead?
from emblmygff3.
The new version will constraint to install v1.77 and not later version. So do the change yourself in your conda env and it should work. It would be easier.
from emblmygff3.
I'm still getting this error when trying to download through conda.
Collecting package metadata (current_repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: \
Found conflicts! Looking for incompatible packages.
This can take several minutes. Press CTRL-C to abort.
failed
UnsatisfiableError: The following specifications were found to be incompatible with each other:
Output in format: Requested package -> Available versions
from emblmygff3.
Then it is better to install the version from the speed
branch. Let me know if you do not know how to proceed
from emblmygff3.
No, I don't.
from emblmygff3.
Give me feedback if the speed branch is working fine. (If you do not encounter any problem), then I would merge to the master
from emblmygff3.
I finally got it installed but once I tried to run it I get this error. I provided it a gff and fa file in that order.
#############################################################################
# EMBLmyGFF3 v2 #
# NBIS - National Bioinformatics Infrastructure Sweden #
# Authors: Martin Norling, Niclas Jareborg, Jacques Dainat #
# Please visit https://github.com/NBISweden/EMBLmyGFF3 for more information #
#############################################################################
Traceback (most recent call last):
File "/Users/chengh1/miniconda3/lib/python3.8/site-packages/Bio/SeqIO/Interfaces.py", line 42, in init
self.stream = open(source, "r" + mode)
TypeError: expected str, bytes or os.PathLike object, not FakeHandle
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/chengh1/miniconda3/bin/EMBLmyGFF3", line 33, in
sys.exit(load_entry_point('EMBLmyGFF3==2', 'console_scripts', 'EMBLmyGFF3')())
File "/Users/chengh1/miniconda3/lib/python3.8/site-packages/EMBLmyGFF3-2-py3.8.egg/EMBLmyGFF3/EMBLmyGFF3.py", line 1346, in main
for record in GFF.parse(infile, base_dict=seq_dict):
File "/Users/chengh1/miniconda3/lib/python3.8/site-packages/BCBio/GFF/GFFParser.py", line 745, in parse
for rec in parser.parse_in_parts(gff_files, base_dict, limit_info,
File "/Users/chengh1/miniconda3/lib/python3.8/site-packages/BCBio/GFF/GFFParser.py", line 322, in parse_in_parts
for results in self.parse_simple(gff_files, limit_info, target_lines):
File "/Users/chengh1/miniconda3/lib/python3.8/site-packages/BCBio/GFF/GFFParser.py", line 343, in parse_simple
for results in self._gff_process(gff_files, limit_info, target_lines):
File "/Users/chengh1/miniconda3/lib/python3.8/site-packages/BCBio/GFF/GFFParser.py", line 637, in _gff_process
for out in self._lines_to_out_info(line_gen, limit_info, target_lines):
File "/Users/chengh1/miniconda3/lib/python3.8/site-packages/BCBio/GFF/GFFParser.py", line 699, in _lines_to_out_info
fasta_recs = self._parse_fasta(FakeHandle(line_iter))
File "/Users/chengh1/miniconda3/lib/python3.8/site-packages/BCBio/GFF/GFFParser.py", line 560, in _parse_fasta
return list(SeqIO.parse(in_handle, "fasta"))
File "/Users/chengh1/miniconda3/lib/python3.8/site-packages/Bio/SeqIO/init.py", line 627, in parse
i = iterator_generator(handle)
File "/Users/chengh1/miniconda3/lib/python3.8/site-packages/Bio/SeqIO/FastaIO.py", line 181, in init
super().init(source, alphabet=alphabet, mode="t", fmt="Fasta")
File "/Users/chengh1/miniconda3/lib/python3.8/site-packages/Bio/SeqIO/Interfaces.py", line 46, in init
if source.read(0) != "":
TypeError: read() takes 1 positional argument but 2 were given
from emblmygff3.
could you try in python 3.7?
from emblmygff3.
And can you share your command?
from emblmygff3.
This is what I typed in for the command.
I'm not sure how to switch over to python3.7.
chengh1$ EMBLmyGFF3 chr1.gff3 chr1.fasta > results.embl
#############################################################################
# EMBLmyGFF3 v2 #
# NBIS - National Bioinformatics Infrastructure Sweden #
# Authors: Martin Norling, Niclas Jareborg, Jacques Dainat #
# Please visit https://github.com/NBISweden/EMBLmyGFF3 for more information #
#############################################################################
Traceback (most recent call last):
File "/Users/chengh1/miniconda3/lib/python3.8/site-packages/Bio/SeqIO/Interfaces.py", line 42, in init
self.stream = open(source, "r" + mode)
TypeError: expected str, bytes or os.PathLike object, not FakeHandle
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/chengh1/miniconda3/bin/EMBLmyGFF3", line 33, in
sys.exit(load_entry_point('EMBLmyGFF3==2', 'console_scripts', 'EMBLmyGFF3')())
File "/Users/chengh1/miniconda3/lib/python3.8/site-packages/EMBLmyGFF3-2-py3.8.egg/EMBLmyGFF3/EMBLmyGFF3.py", line 1346, in main
for record in GFF.parse(infile, base_dict=seq_dict):
File "/Users/chengh1/miniconda3/lib/python3.8/site-packages/BCBio/GFF/GFFParser.py", line 745, in parse
for rec in parser.parse_in_parts(gff_files, base_dict, limit_info,
File "/Users/chengh1/miniconda3/lib/python3.8/site-packages/BCBio/GFF/GFFParser.py", line 322, in parse_in_parts
for results in self.parse_simple(gff_files, limit_info, target_lines):
File "/Users/chengh1/miniconda3/lib/python3.8/site-packages/BCBio/GFF/GFFParser.py", line 343, in parse_simple
for results in self._gff_process(gff_files, limit_info, target_lines):
File "/Users/chengh1/miniconda3/lib/python3.8/site-packages/BCBio/GFF/GFFParser.py", line 637, in _gff_process
for out in self._lines_to_out_info(line_gen, limit_info, target_lines):
File "/Users/chengh1/miniconda3/lib/python3.8/site-packages/BCBio/GFF/GFFParser.py", line 699, in _lines_to_out_info
fasta_recs = self._parse_fasta(FakeHandle(line_iter))
File "/Users/chengh1/miniconda3/lib/python3.8/site-packages/BCBio/GFF/GFFParser.py", line 560, in _parse_fasta
return list(SeqIO.parse(in_handle, "fasta"))
File "/Users/chengh1/miniconda3/lib/python3.8/site-packages/Bio/SeqIO/init.py", line 627, in parse
i = iterator_generator(handle)
File "/Users/chengh1/miniconda3/lib/python3.8/site-packages/Bio/SeqIO/FastaIO.py", line 181, in init
super().init(source, alphabet=alphabet, mode="t", fmt="Fasta")
File "/Users/chengh1/miniconda3/lib/python3.8/site-packages/Bio/SeqIO/Interfaces.py", line 46, in init
if source.read(0) != "":
TypeError: read() takes 1 positional argument but 2 were given
from emblmygff3.
Could you try -o results.embl
instead of > results.embl
from emblmygff3.
I'm getting the same error message.
chengh1$ EMBLmyGFF3 chr1.gff3 chr1.fasta > results.embl
#############################################################################
# EMBLmyGFF3 v2 #
# NBIS - National Bioinformatics Infrastructure Sweden #
# Authors: Martin Norling, Niclas Jareborg, Jacques Dainat #
# Please visit https://github.com/NBISweden/EMBLmyGFF3 for more information #
#############################################################################
Traceback (most recent call last):
File "/Users/chengh1/miniconda3/lib/python3.8/site-packages/Bio/SeqIO/Interfaces.py", line 42, in init
self.stream = open(source, "r" + mode)
TypeError: expected str, bytes or os.PathLike object, not FakeHandle
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/chengh1/miniconda3/bin/EMBLmyGFF3", line 33, in
sys.exit(load_entry_point('EMBLmyGFF3==2', 'console_scripts', 'EMBLmyGFF3')())
File "/Users/chengh1/miniconda3/lib/python3.8/site-packages/EMBLmyGFF3-2-py3.8.egg/EMBLmyGFF3/EMBLmyGFF3.py", line 1346, in main
for record in GFF.parse(infile, base_dict=seq_dict):
File "/Users/chengh1/miniconda3/lib/python3.8/site-packages/BCBio/GFF/GFFParser.py", line 745, in parse
for rec in parser.parse_in_parts(gff_files, base_dict, limit_info,
File "/Users/chengh1/miniconda3/lib/python3.8/site-packages/BCBio/GFF/GFFParser.py", line 322, in parse_in_parts
for results in self.parse_simple(gff_files, limit_info, target_lines):
File "/Users/chengh1/miniconda3/lib/python3.8/site-packages/BCBio/GFF/GFFParser.py", line 343, in parse_simple
for results in self._gff_process(gff_files, limit_info, target_lines):
File "/Users/chengh1/miniconda3/lib/python3.8/site-packages/BCBio/GFF/GFFParser.py", line 637, in _gff_process
for out in self._lines_to_out_info(line_gen, limit_info, target_lines):
File "/Users/chengh1/miniconda3/lib/python3.8/site-packages/BCBio/GFF/GFFParser.py", line 699, in _lines_to_out_info
fasta_recs = self._parse_fasta(FakeHandle(line_iter))
File "/Users/chengh1/miniconda3/lib/python3.8/site-packages/BCBio/GFF/GFFParser.py", line 560, in _parse_fasta
return list(SeqIO.parse(in_handle, "fasta"))
File "/Users/chengh1/miniconda3/lib/python3.8/site-packages/Bio/SeqIO/init.py", line 627, in parse
i = iterator_generator(handle)
File "/Users/chengh1/miniconda3/lib/python3.8/site-packages/Bio/SeqIO/FastaIO.py", line 181, in init
super().init(source, alphabet=alphabet, mode="t", fmt="Fasta")
File "/Users/chengh1/miniconda3/lib/python3.8/site-packages/Bio/SeqIO/Interfaces.py", line 46, in init
if source.read(0) != "":
TypeError: read() takes 1 positional argument but 2 were given
from emblmygff3.
I didn't pay attention you did not switch to python 3.7. I guess it can fix the problem.
conda install python=3.7
from emblmygff3.
btw did you try the included test? EMBLmyGFF3-maker-example
to be sure it is not related to the provided files
from emblmygff3.
I'm getting a bunch of errors when I use the conda install python=3.7 command.
But when I run the other one I get this.
chengh1$ EMBLmyGFF3-maker-example
Running the following command: EMBLmyGFF3 --rg REFERENCE_GROUP -i MYLOCUSTAG -p 17285 -m "genomic DNA" -r 1 -t linear -s "Drosophila melanogaster" -x INV -o EMBLmyGFF3-maker-example.embl /Users/chengh1/miniconda3/lib/python3.8/site-packages/EMBLmyGFF3-2-py3.8.egg/examples/maker.gff3 /Users/chengh1/miniconda3/lib/python3.8/site-packages/EMBLmyGFF3-2-py3.8.egg/examples/maker.fa
#############################################################################
# EMBLmyGFF3 v2 #
# NBIS - National Bioinformatics Infrastructure Sweden #
# Authors: Martin Norling, Niclas Jareborg, Jacques Dainat #
# Please visit https://github.com/NBISweden/EMBLmyGFF3 for more information #
#############################################################################
17:30:58 WARNING feature: Unknown qualifier '_AED' - skipped ]
17:30:58 WARNING feature: Unknown qualifier '_eAED' - skipped
17:30:58 WARNING feature: Unknown qualifier '_QI' - skipped
Conversion done
from emblmygff3.
Ok the test works. So the problem is either the command or the files you provide as input. Have you check the path and that they are in read? Are you sure there is data inside ?
from emblmygff3.
I downloaded it with python3.7 and made use that I was in the same directory as my input files and made sure that they contained the correct information for the files, I redownloaded it from the source just to be sure and I still get this error.
$ EMBLmyGFF3 chr2.gff3 chr2.fasta
#############################################################################
# EMBLmyGFF3 v2 #
# NBIS - National Bioinformatics Infrastructure Sweden #
# Authors: Martin Norling, Niclas Jareborg, Jacques Dainat #
# Please visit https://github.com/NBISweden/EMBLmyGFF3 for more information #
#############################################################################
Traceback (most recent call last):
File "/home/whitehoi/.local/lib/python3.7/site-packages/Bio/SeqIO/Interfaces.py", line 42, in init
self.stream = open(source, "r" + mode)
TypeError: expected str, bytes or os.PathLike object, not FakeHandle
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/whitehoi/.local/bin/EMBLmyGFF3", line 10, in
sys.exit(main())
File "/home/whitehoi/.local/lib/python3.7/site-packages/EMBLmyGFF3/EMBLmyGFF3.py", line 1346, in main
for record in GFF.parse(infile, base_dict=seq_dict):
File "/home/whitehoi/.local/lib/python3.7/site-packages/BCBio/GFF/GFFParser.py", line 746, in parse
target_lines):
File "/home/whitehoi/.local/lib/python3.7/site-packages/BCBio/GFF/GFFParser.py", line 322, in parse_in_parts
for results in self.parse_simple(gff_files, limit_info, target_lines):
File "/home/whitehoi/.local/lib/python3.7/site-packages/BCBio/GFF/GFFParser.py", line 343, in parse_simple
for results in self._gff_process(gff_files, limit_info, target_lines):
File "/home/whitehoi/.local/lib/python3.7/site-packages/BCBio/GFF/GFFParser.py", line 637, in _gff_process
for out in self._lines_to_out_info(line_gen, limit_info, target_lines):
File "/home/whitehoi/.local/lib/python3.7/site-packages/BCBio/GFF/GFFParser.py", line 699, in _lines_to_out_info
fasta_recs = self._parse_fasta(FakeHandle(line_iter))
File "/home/whitehoi/.local/lib/python3.7/site-packages/BCBio/GFF/GFFParser.py", line 560, in _parse_fasta
return list(SeqIO.parse(in_handle, "fasta"))
File "/home/whitehoi/.local/lib/python3.7/site-packages/Bio/SeqIO/init.py", line 627, in parse
i = iterator_generator(handle)
File "/home/whitehoi/.local/lib/python3.7/site-packages/Bio/SeqIO/FastaIO.py", line 181, in init
super().init(source, alphabet=alphabet, mode="t", fmt="Fasta")
File "/home/whitehoi/.local/lib/python3.7/site-packages/Bio/SeqIO/Interfaces.py", line 46, in init
if source.read(0) != "":
TypeError: read() takes 1 positional argument but 2 were given
from emblmygff3.
Again try the test to see if it is suppose to work: EMBLmyGFF3-maker-example
Then show me your folder ls -l
from emblmygff3.
I guess one of your file is not properly formated or empty
from emblmygff3.
$ EMBLmyGFF3-maker-example
Running the following command: EMBLmyGFF3 --rg REFERENCE_GROUP -i MYLOCUSTAG -p 17285 -m "genomic DNA" -r 1 -t linear -s "Drosophila melanogaster" -x INV -o EMBLmyGFF3-maker-example.embl /home/whitehoi/.local/lib/python3.7/site-packages/examples/maker.gff3 /home/whitehoi/.local/lib/python3.7/site-packages/examples/maker.fa
#############################################################################
# EMBLmyGFF3 v2 #
# NBIS - National Bioinformatics Infrastructure Sweden #
# Authors: Martin Norling, Niclas Jareborg, Jacques Dainat #
# Please visit https://github.com/NBISweden/EMBLmyGFF3 for more information #
#############################################################################
10:24:23 WARNING feature: Unknown qualifier '_AED' - skipped ]
10:24:23 WARNING feature: Unknown qualifier '_eAED' - skipped
10:24:23 WARNING feature: Unknown qualifier '_QI' - skipped
Conversion done
$ ls -l
total 4482
-rwx------ 1 whitehoi whitehoi 826861 Oct 19 09:24 chr2.fasta
-rwx------ 1 whitehoi whitehoi 1633600 Mar 6 2020 chr2.gff3
-rwx------ 1 whitehoi whitehoi 2127177 Nov 19 10:24 EMBLmyGFF3-maker-example.embl
from emblmygff3.
The files I downloaded were the ones from EMBOSS for the yeast genome.
from emblmygff3.
Test still working so probably something with the file. Could you give me a link to the files I will give a try
from emblmygff3.
https://www.ncbi.nlm.nih.gov/nuccore/BK006935
Then for the fast file, I just used the standard s288c genome.
from emblmygff3.
I do not see any gff file at this address
from emblmygff3.
Yes sorry, I did it manually above the title there is a thing that says "Send to: " and I choose "Destination" then changed the "Format" to "GFF3"
chr1.gff.txt
from emblmygff3.
Could you give me the link to the Fasta to be sure I use the same?
from emblmygff3.
Related Issues (20)
- How to add in comment or CC line HOT 1
- Webin-CLI validation failing due to duplicated feature locations in EMBLmyGFF3 flat file HOT 2
- thank you HOT 1
- ImportError Bio.Alphabet error HOT 1
- What the option "-a accesion" parameter should to be set(means:What type?) HOT 3
- TypeError: read() takes 1 positional argument but 2 were given? HOT 3
- attribute formats broken across several lines HOT 2
- Use of example data HOT 2
- Contigs are disorganised in the EMBL file HOT 10
- Warning qualifier unknown db_xref HOT 1
- Translation problem HOT 2
- Reporting the line number of the problematic input GFF3 files when parsing error is triggered HOT 2
- BioPython 1.81 installs via conda, but needs an older version HOT 2
- if I can specify certain python source during python setup.py install HOT 2
- Not for ENA submission: Sequence too short
- Installation issue EMBLmyGFF3 & python version requirements
- Translation when circular genome and ORF in the cut of the assembly HOT 1
- unexpected keyword argument 'strand' HOT 3
- Gene sorting compared to fasta HOT 4
- Bug when specifying -g mitochrondrion (or plastid)
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 emblmygff3.