Comments (6)
Note for others reading this, this is a git clone rather than an installation using PyPi.
Kyle - The key directory I don't see in your PYTHONPATH is this: /home/ktretina/git/biocode/lib
What happens when you add that?
from biocode.
It doesn't seem to make a difference, I still get the same error when I set it to this (below), open a new session, then run the script.
export PYTHONPATH=$PYTHONPATH:/home/jorvis/lib:/home/jorvis/svn/jorvis/utilities/lib:/home/jorvis/git/biocode/lib:/home/jorvis/git/Emergence/emergence/apps:/home/ktretina/git/biocode/lib/biocode/:/home/ktretina/git/biocode/lib
from biocode.
Confused here. I just spawned a brand-new VM, empty, and did this:
jorvis@falcon-node-001:~$ sudo apt-get install git
...
jorvis@falcon-node-001:~$ git clone https://github.com/jorvis/biocode.git
Cloning into 'biocode'...
remote: Counting objects: 3495, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 3495 (delta 0), reused 0 (delta 0), pack-reused 3491
Receiving objects: 100% (3495/3495), 1.08 MiB | 0 bytes/s, done.
Resolving deltas: 100% (2073/2073), done.
Checking connectivity... done.
jorvis@falcon-node-001:~$ export PYTHONPATH=$HOME/biocode/lib
jorvis@falcon-node-001:~$ ./biocode/gff/write_fasta_from_gff.py
usage: write_fasta_from_gff.py [-h] -i INPUT_FILE [-o OUTPUT_FILE]
[-t {protein,cds}] [-f FASTA]
[-ft {mRNA,polypeptide}] [--check_ends]
[--check_internal_stops]
write_fasta_from_gff.py: error: the following arguments are required: -i/--input_file
from biocode.
I tried a series of different additions to my PYTHONPATH, and was able to get a different error:
[ktretina@medusa ~]$ export PYTHONPATH=/home/ktretina/git/biocode/lib/biocode
[ktretina@medusa ~]$ python ~/git/biocode/gff/write_fasta_from_gff.py -i ref.gff3 -f ref.fasta -o ref.fasta -t cds
Traceback (most recent call last):
File "/home/ktretina/git/biocode/gff/write_fasta_from_gff.py", line 31, in
from biocode import utils, gff
ImportError: No module named 'biocode'
[ktretina@medusa ~]$ export PYTHONPATH=/home/ktretina/git/biocode:/home/ktretina/git/biocode/lib/biocode/
[ktretina@medusa ~]$ python ~/git/biocode/gff/write_fasta_from_gff.py -i ref.gff3 -f ref.fasta -o ref.fasta -t cds
Traceback (most recent call last):
File "/home/ktretina/git/biocode/gff/write_fasta_from_gff.py", line 31, in
from biocode import utils, gff
ImportError: No module named 'biocode'
[ktretina@medusa ~]$ export PYTHONPATH=/home/ktretina/git/:/home/ktretina/git/biocode:/home/ktretina/git/biocode/lib:/home/ktretina/git/biocode/lib/biocode
[ktretina@medusa samples]$ python ~/git/biocode/gff/write_fasta_from_gff.py -i reference/Tparva_Muguga_newref.gff3 -f reference/reference.tp.assembly.all.fasta -o test.fasta -t cds
Traceback (most recent call last):
File "/home/ktretina/git/biocode/gff/write_fasta_from_gff.py", line 126, in
main()
File "/home/ktretina/git/biocode/gff/write_fasta_from_gff.py", line 65, in main
utils.add_assembly_fasta(assemblies, args.fasta)
File "/home/ktretina/git/biocode/lib/biocode/utils.py", line 219, in add_assembly_fasta
fasta_seqs = utils.fasta_dict_from_file(fasta_file)
NameError: name 'utils' is not defined
I'm a little confused by this, because I would expect it to first throw an error at import utils.
from biocode.
Try making your PYTHONPATH only this:
export PYTHONPATH=/home/ktretina/git/biocode/lib
from biocode.
This seems to have done the trick! Thanks!
from biocode.
Related Issues (20)
- convert_gff3_to_ncbi_tbl HOT 5
- Syntax error on gff.py HOT 4
- Exclude mRNA features in bacterial TBL exports
- Attribute error for update_selected_column9_values.py HOT 1
- Biocode.gff module error HOT 2
- [convert_genbank_to_gff3.py] key_error: locus_tag HOT 5
- AttributeError: type object 'str' has no attribute 'maketrans' HOT 2
- AttributeError: 'Gene' object has no attribute 'add_CDS' HOT 4
- Insert EC numbers into chado database issue HOT 5
- convert_augustus_to_gff3.py error HOT 6
- Conda based install HOT 2
- convert_gff3_to_ncbi_tbl.py HOT 2
- convert_gff_to_ncbi_tbl.py HOT 3
- Incorrect parent features from convert_tRNAScanSE_to_gff3.pl HOT 2
- Formatting Issue? HOT 2
- biocode error HOT 16
- product info not printout in tbl HOT 2
- fasta/fasta_simple_stats.py fails on any file with only one sequence
- [convert_genbank_to_gff3.py] No Locus_tag present in my genbank file HOT 2
- Python upgrade/conversion? HOT 1
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 biocode.