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
        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 on Modified Bases...
        Yesterday, 07:01 AM
      • seqadmin
        Current Approaches to Protein Sequencing
        by seqadmin


        Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
        04-04-2024, 04:25 PM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, 04-11-2024, 12:08 PM
      0 responses
      55 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-10-2024, 10:19 PM
      0 responses
      51 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-10-2024, 09:21 AM
      0 responses
      45 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-04-2024, 09:00 AM
      0 responses
      55 views
      0 likes
      Last Post seqadmin  
      Working...
      X