Git Product home page Git Product logo

Comments (7)

drpatelh avatar drpatelh commented on June 15, 2024 1

@saramonzon @svarona have you come across anything like this? What's the best fix?

from viralrecon.

saramonzon avatar saramonzon commented on June 15, 2024 1

Yes, this is the fix included in dev, for bcftools consensus as varscan has been dropped!

from viralrecon.

ktrns avatar ktrns commented on June 15, 2024

Running viralrecon with --callers varscan2,ivar we get the following log:

Caused by:
  Process `VARSCAN2_CONSENSUS (Lib1)` terminated with an error exit status (2)

Command executed:

  cat MN908947_nCoV_2019_Wuhan.fa | bcftools consensus Lib1.AF0.75.vcf.gz > Lib1.AF0.75.consensus.fa
  
  bedtools genomecov \
      -bga \
      -ibam Lib1.trim.mkD.sorted.bam \
      -g MN908947_nCoV_2019_Wuhan.fa \
      | awk '$4 < 10' | bedtools merge > Lib1.AF0.75.mask.bed
  
  bedtools maskfasta \
      -fi Lib1.AF0.75.consensus.fa \
      -bed Lib1.AF0.75.mask.bed \
      -fo Lib1.AF0.75.consensus.masked.fa
  header=$(head -n 1 Lib1.AF0.75.consensus.masked.fa | sed 's/>//g')
  sed -i "s/${header}/Lib1/g" Lib1.AF0.75.consensus.masked.fa
  
  plot_base_density.r --fasta_files Lib1.AF0.75.consensus.masked.fa --prefixes Lib1.AF0.75 --output_dir ./

So it looks very similar.

from viralrecon.

ktrns avatar ktrns commented on June 15, 2024

It looks like the pipeline requires a liftOver at different places.

You can run bcftools consensus with --chain to write a chain file for liftOver, and then run liftOver for the *.mask.bed file.

from viralrecon.

drpatelh avatar drpatelh commented on June 15, 2024

This should have been fix in #146. Be great if you can test the code on dev and close this issue if that's the case @ktrns 🙂 Apologies for the delay in getting around to merging.

from viralrecon.

drpatelh avatar drpatelh commented on June 15, 2024

I assume this is now fixed @saramonzon?

from viralrecon.

drpatelh avatar drpatelh commented on June 15, 2024

Ping @saramonzon

from viralrecon.

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.