Git Product home page Git Product logo

Comments (4)

gamcil avatar gamcil commented on May 14, 2024

Would you be able to upload a couple of files you are having issues with? I've tested mostly with GFFs downloaded from NCBI, but files generated by Augustus should also work.

from clinker.

BenAuxier avatar BenAuxier commented on May 14, 2024

Here is the output. First I use the gff that comes straight out of Augustus. It complains about

ben@iMac-van-iMac locus_5 % /Users/ben/Library/Python/3.8/bin/clinker -p gff.html *.gff [13:35:11] INFO - Starting clinker [13:35:11] INFO - Parsing GenBank files: ['locus5_A1163.gff', 'locus5_Af293.gff', 'locus5_p20.gff', 'locus5_p21.gff'] Traceback (most recent call last): File "/Users/ben/Library/Python/3.8/bin/clinker", line 10, in <module> sys.exit(main()) File "/Users/ben/Library/Python/3.8/lib/python/site-packages/clinker/main.py", line 208, in main clinker( File "/Users/ben/Library/Python/3.8/lib/python/site-packages/clinker/main.py", line 71, in clinker clusters = parse_files(paths) File "/Users/ben/Library/Python/3.8/lib/python/site-packages/clinker/classes.py", line 200, in parse_files cluster = parse_gff(path) File "/Users/ben/Library/Python/3.8/lib/python/site-packages/clinker/classes.py", line 92, in parse_gff seqid = feature.attributes["ID"][0] File "/Users/ben/Library/Python/3.8/lib/python/site-packages/gffutils/attributes.py", line 63, in __getitem__ v = self._d[k] KeyError: 'ID'

Then I try with using the --gff3=on option, and get a similar error message about uid

ben@iMac-van-iMac locus_5 % /Users/ben/Library/Python/3.8/bin/clinker -p gff.html *.gff3 [13:36:14] INFO - Starting clinker [13:36:14] INFO - Parsing GenBank files: ['locus5_A1163.gff3', 'locus5_Af293.gff3', 'locus5_p20.gff3', 'locus5_p21.gff3'] /Users/ben/Library/Python/3.8/lib/python/site-packages/Bio/Seq.py:2334: BiopythonWarning: Partial codon, len(sequence) not a multiple of three. Explicitly trim the sequence or add trailing N before translation. This may become an error in future. warnings.warn( [13:36:14] INFO - Starting cluster alignments Traceback (most recent call last): File "/Users/ben/Library/Python/3.8/bin/clinker", line 10, in <module> sys.exit(main()) File "/Users/ben/Library/Python/3.8/lib/python/site-packages/clinker/main.py", line 208, in main clinker( File "/Users/ben/Library/Python/3.8/lib/python/site-packages/clinker/main.py", line 81, in clinker globaligner = align.align_clusters(*clusters, cutoff=identity, jobs=jobs) File "/Users/ben/Library/Python/3.8/lib/python/site-packages/clinker/align.py", line 51, in align_clusters aligner.add_clusters(*args) File "/Users/ben/Library/Python/3.8/lib/python/site-packages/clinker/align.py", line 325, in add_clusters self._genes[gene.uid] = gene AttributeError: 'NoneType' object has no attribute 'uid'

I can get clinker to work, using the gff2gbSmall.pl script from the Augustus distribution, but the output does not recognize that they are coming from the same DNA strand, and things they are all separate contigs.

Screen Shot 2021-01-28 at 1 40 51 PM

I have attached the .gff files, gff3, gb and fast files if that helps.

locus5.tar.gz

from clinker.

gamcil avatar gamcil commented on May 14, 2024

Thanks for the files, think I've narrowed down to the issue.

By default, Augustus produces GTF files, which is the source of the first error (see daler/gffutils#65). In each row, the parser used by clinker expects an 'ID' key/value pair, which that file does not have. Perhaps in the future I'll try to add a fallback to try and catch this.

Using the -gff3 option like you did fixes that, but then you hit a clinker bug, where gene coordinates were read in incorrectly from GFF files. I've fixed that in #44 which should land in the next release.

Using your GFF3 files:
image

from clinker.

BenAuxier avatar BenAuxier commented on May 14, 2024

Thanks, very excited to use this!

from clinker.

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.