Giter Site home page Giter Site logo

pip2 install biocode error about biocode HOT 10 CLOSED

jorvis avatar jorvis commented on July 16, 2024
pip2 install biocode error

from biocode.

Comments (10)

jorvis avatar jorvis commented on July 16, 2024

from biocode.

jorvis avatar jorvis commented on July 16, 2024

Did you make any progress here? Also, the title said you were attempting this using pip2, but the body of your report said pip3. Just in case, biocode isn't supported in Python 2.x

from biocode.

jorvis avatar jorvis commented on July 16, 2024

Marking as resolved, since the current code no longer has the dependency which caused this error.

from biocode.

kayDaramola avatar kayDaramola commented on July 16, 2024

Hi Jorvis,
thanks for the reply, I've been away.
I actually used` pip install biocode, to install biocode-0.5.3
just figuring out how to use it to convert my gff or gtf to GFF3
Kay

from biocode.

jorvis avatar jorvis commented on July 16, 2024

OK, so you got a successful installation now? If so, you can just run the convert_augustus_to_gff3.py script, which should now be in your PATH. Run it without arguments to see usage:

$ convert_augustus_to_gff3.py
usage: convert_augustus_to_gff3.py [-h] -i INPUT -o OUTPUT
convert_augustus_to_gff3.py: error: the following arguments are required: -i/--input, -o/--output

from biocode.

kayDaramola avatar kayDaramola commented on July 16, 2024

what I've is to
$ python
then;

import biocode.gff
(assemblies, features) = biocode.gff.get_gff3_features( "/pub38/kayussky/gff_to_GTF3/augustus_erins.gff" )

says;
Traceback (most recent call last):
File "", line 1, in
File "/pub38/kayussky/biocode/lib/biocode/gff.py", line 252, in get_gff3_features
atts = column_9_dict(cols[8])
File "/pub38/kayussky/biocode/lib/biocode/gff.py", line 101, in column_9_dict
raise Exception("Bad column 9 format: {0}".format(colstring) )
Exception: Bad column 9 format: g1

it does bring me back to why i wanted to install biocode in the first place, seems the last column (9), which contains the attributes is in a bad format, thats why I couldnt use it in the first place. Unfortunately, I just trying to learn how to maybe use python to re-write affected columns.

from biocode.

jorvis avatar jorvis commented on July 16, 2024

Do you mind attaching the file or putting it somewhere I can download it? Also, which version of Augustus are you using?

The biocode.gff.get_gff3_features() will only work if the GFF3 is valid already and the output from Augustus isn't. The script I mentioned is used to transform the August GFF into actual, valid GFF3, after which you can use the biocode libraries on it.

from biocode.

kayDaramola avatar kayDaramola commented on July 16, 2024

so I tried what you suggested:

convert_augustus_to_gff3.py -i augustus_erins.gtf -o new_augustus

my input looks like,

scaffold10x_1 AUGUSTUS gene 3591 4530 0.27 - . g1
scaffold10x_1 AUGUSTUS transcript 3591 4530 0.27 - . g1.t1
scaffold10x_1 AUGUSTUS stop_codon 3591 3593 . - 0 transcript_id "g1.t1"; gene_id "g1";
scaffold10x_1 AUGUSTUS CDS 3591 3859 0.34 - 2 transcript_id "g1.t1"; gene_id "g1";
scaffold10x_1 AUGUSTUS exon 3591 3859 . - . transcript_id "g1.t1"; gene_id "g1";
scaffold10x_1 AUGUSTUS intron 3860 4022 0.28 - . transcript_id "g1.t1"; gene_id "g1";
scaffold10x_1 AUGUSTUS CDS 4023 4530 0.63 - 0 transcript_id "g1.t1"; gene_id "g1";
scaffold10x_1 AUGUSTUS exon 4023 4530 . - . transcript_id "g1.t1"; gene_id "g1";
scaffold10x_1 AUGUSTUS start_codon 4528 4530 . - 0 transcript_id "g1.t1"; gene_id "g1";
scaffold10x_1 AUGUSTUS gene 26186 31433 0.2 - . g2
scaffold10x_1 AUGUSTUS transcript 26186 31433 0.2 - . g2.t1
scaffold10x_1 AUGUSTUS stop_codon 26186 26188 . - 0 transcript_id "g2.t1"; gene_id "g2";
scaffold10x_1 AUGUSTUS CDS 26186 26304 0.37 - 2 transcript_id "g2.t1"; gene_id "g2";
scaffold10x_1 AUGUSTUS exon 26186 26304 . - . transcript_id "g2.t1"; gene_id "g2";
scaffold10x_1 AUGUSTUS intron 26305 29389 0.28 - . transcript_id "g2.t1"; gene_id "g2";
scaffold10x_1 AUGUSTUS CDS 29390 30220 0.39 - 2 transcript_id "g2.t1"; gene_id "g2";
scaffold10x_1 AUGUSTUS exon 29390 30220 . - . transcript_id "g2.t1"; gene_id "g2";
scaffold10x_1 AUGUSTUS intron 30221 30844 0.45 - . transcript_id "g2.t1"; gene_id "g2";
scaffold10x_1 AUGUSTUS CDS 30845 31433 0.41 - 0 transcript_id "g2.t1"; gene_id "g2";
scaffold10x_1 AUGUSTUS exon 30845 31433 . - . transcript_id "g2.t1"; gene_id "g2";

the output just says;

##gff-version 3

and that's it. so I think its the last columns of the input files I need to work on.

Thanks for your assistance so far

from biocode.

jorvis avatar jorvis commented on July 16, 2024

OK, that helps. Can you tell me what version of Augustus was used to generate this file? Mario does like changing the output formats occasionally, so I'll need to modify the conversion script to account for the different versions.

from biocode.

jorvis avatar jorvis commented on July 16, 2024

Let's please shift this discussion to issue #51, since the installer isn't an issue here.

from biocode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.