about computer memory and mpileup files
2
0
Entering edit mode
8.2 years ago
Bogdan ★ 1.4k

Dear all,

I am using Varscan2 in order to call the somatic variants in the cancer genomes.

Please could you advise whether you know a way to keep a file in the computer memory for the next processing step, instead of writing it to hard drive ?

More specifically, for Varscan2, I would like to keep the germline and tumor mpileup files in the computer memory for the next processings steps (ie variant calling), instead of writing them on the disk.

thanks,

bogdan

SNP memory varscan2 • 2.1k views
ADD COMMENT
2
Entering edit mode
8.2 years ago
Tonor ▴ 480

If you are on Linux/Mac system, you should be able to use the Pipe symbol "|" to redirect the output of one command into the input of the next command.

On the VarScan website it has instructions: http://varscan.sourceforge.net/using-varscan.html

Note, to save disk space and file I/O, you can redirect mpileup output directly to VarScan with a "pipe" command. For example: One sample:

samtools mpileup -f reference.fasta myData.bam | java -jar VarScan.v2.2.jar pileup2snp

Multiple samples:

samtools mpileup -f reference.fasta sample1.bam sample2.bam | java -jar VarScan.v2.2.jar pileup2snp
ADD COMMENT
0
Entering edit mode

Thank you, Tonor ! And for both GERMLINE and TUMOR samples ... how would you write ?

ADD REPLY
1
Entering edit mode
8.2 years ago

You might look into using a "ramdisk". Many UNIX systems I have used have a predefined ramdisk on /dev/shm. You can copy files there and use them normally.

A RAM disk is a region of memory that you can use like a normal filesystem or harddrive. If one is not made yet, some commands will make one for you. If your system has plenty of memory, it is a good idea to create one and use it for temporary files. Windows can probably do it with a utility too.

Beware that it erases everything when you reboot!

ADD COMMENT
0
Entering edit mode

Thank you Karl, great suggestion !

ADD REPLY

Login before adding your answer.

Traffic: 1793 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6