Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • VarScan2 copynumber output name

    Hi. I have been running VarScan2 copynumber
    according to the manual's instructions, shown here:
    samtools mpileup -q 1 -f ref.fa normal.bam tumor.bam |
    java -jar VarScan.jar copynumber varScan --mpileup 1
    This will create a single output file, varScan.copynumber, containing the raw copynumber calls.

    My exact command is:
    samtools mpileup -B -q 10 -f genome.fa normal.bam tumor.bam |\
    awk -F"\t" '$4 > 0 && $7 >0' | java -jar $varscan_dir/VarScan.jar copynumber \
    tumor.copynumber --mpileup 1 --data-ratio 0.50

    The problem is that it is not writing the output to my file "tumor.copynumber" but instead to "output.copynumber" which is the default. Anyone have any idea why?

  • #2
    Facing same issue

    Did you figure out a solution for this?

    I tried this:

    varscan=~/VarScan.v2.3.9.jar

    samtools mpileup -q 1 -B -f ${ref_fasta} ${normalbam} ${tumorbam} |java -jar ${varscan} copynumber --mpileup ${outputname} 1

    This seems working, though in VarScan2 copynumber page it is mentioned:

    samtools mpileup -q 1 -f ref.fa normal.bam tumor.bam |
    java -jar VarScan.jar copynumber <outputname> --mpileup 1

    Which is not working!

    Using:

    $ samtools --version
    samtools 1.5
    Using htslib 1.5
    Copyright (C) 2017 Genome Research Ltd.

    $
    VarScan v2.3
    Last edited by amalthomas111; 01-30-2018, 05:39 PM.

    Comment


    • #3
      Order matters apparently

      I had the same problem and apparently solved by putting the name of the output file just after the combined pileup file and before the "--mpileup 1" argument

      java -jar VarScan.v2.3.9.jar copynumber tumor_normal.mpileup OUTPUTNAME --mpileup 1 --min-coverage 10 (etc etc if you want to add other options)

      The output of this command should be OUTPUTNAME.copynumber (the .copynumber is always added by Varscan).

      Hope it helps!

      Comment

      Latest Articles

      Collapse

      • seqadmin
        Recent Advances in Sequencing Analysis Tools
        by seqadmin


        The sequencing world is rapidly changing due to declining costs, enhanced accuracies, and the advent of newer, cutting-edge instruments. Equally important to these developments are improvements in sequencing analysis, a process that converts vast amounts of raw data into a comprehensible and meaningful form. This complex task requires expertise and the right analysis tools. In this article, we highlight the progress and innovation in sequencing analysis by reviewing several of the...
        Yesterday, 07:48 AM
      • seqadmin
        Essential Discoveries and Tools in Epitranscriptomics
        by seqadmin




        The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist...
        04-22-2024, 07:01 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, Today, 06:57 AM
      0 responses
      9 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, Yesterday, 07:17 AM
      0 responses
      14 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 05-02-2024, 08:06 AM
      0 responses
      19 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-30-2024, 12:17 PM
      0 responses
      23 views
      0 likes
      Last Post seqadmin  
      Working...
      X