GithubHelp home page GithubHelp logo

Comments (4)

suhrig avatar suhrig commented on June 15, 2024

This may either be a case of unexpected behavior on Mac, or your hg38.fa is really missing the Y chromosome (probably due to a corrupt download). Can you check, if the sequence is present:

grep chrY /Volumes/bam/DRG/annotations/hg38.fa

This should give you:

>chrY
>chrY_KI270740v1_random
>chrY_KZ208923v1_fix
>chrY_KZ208924v1_fix
>chrY_KN196487v1_fix

I just tested the FastA and GTF files you linked. Arriba does not throw the error on my system (Linux). I will test it on a Mac next. Hopefully, I will find some time tomorrow.

from arriba.

chahatupreti avatar chahatupreti commented on June 15, 2024

It's pretty strange. I do have the Y chromosome -

| => grep chrY /Volumes/bam/DRG/annotations/hg38.fa
>chrY
>chrY_KI270740v1_random
>chrY_KZ208923v1_fix
>chrY_KZ208924v1_fix
>chrY_KN196487v1_fix

And yet it gives the error I mentioned! This is very mysterious.

from arriba.

suhrig avatar suhrig commented on June 15, 2024

I was able to reproduce your problem on a Mac! Just as suspected the root cause is a Mac peculiarity. The function I use to check if a file is empty behaves differently on Mac than on Linux. Mac always reports the file as empty and therefore nothing gets read at all. Arriba only complains about chromosome Y, because that's the first one it checks, but really all of the chromosomes are missing.

Incidentally, I have already fixed the issue in my local code repository, because I recently made some optimizations to the routine that loads the assembly. This optimization happens to circumvent the Mac issue. I will push the changes to GitHub sooner or later. Until then, there is an easy workaround: You should only pass gzipped files to Arriba (i.e., whenever you use -a, -g, -b, -d, or -k). Loading of gzipped files uses different code, so there the issue is not triggered. BAM and SAM files (arguments -c and -x) need not be zipped, because they also use different code for loading.

from arriba.

chahatupreti avatar chahatupreti commented on June 15, 2024

Hi Sebastian,

Your suggestion to use the gzipped file worked! Thanks a lot for the prompt and detailed response.

from arriba.

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.