Skip to content

Miscellaneous scripts written to help dealing with big data

Notifications You must be signed in to change notification settings

ACSoupir/MiscProcessingScripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

MiscProcessingScripts

Miscellaneous scripts written to help dealing with big data

Downloading

In WSL or linux terminal, git clone https://github.com/ACSoupir/MiscProcessingScripts.git.

ICGC Subsampling of Whole Genome Sequencing BAM

Recently we have been working with trying to use some data from ICGC and we have found that the size of the files are much too large to store locally on our workstation computers. To deal with this problem, I wrote a script to use the ICGC score-client and extractSoftclipped. The script takes in a couple arguments:

  • -t --threads are the number of threads that will be passed to samtools view to count and sample the large bam file. Default is 1 thread
  • -r --reads_wanted are the number of reads that are wanted in the output file. Some of the ICGC files have over 1 billion reads. Default is 15000000 reads
  • -d --delete is whether or not to delete the full downloaded ICGC file. Default is n
  • -s --seed is the seed that samtools view will use when sampling the ICGC bam file. This is important to maintain repeatability Default is 333
  • -m --manifest is the manifest file that is downloaded from ICGC. THIS IS REQUIRED

ICGC requires application and granted access in order to get raw sequencing data, but there is other data formats that are available. This script has only been validated for aligned whole genome sequencing data files so it is unknown whether the other data formats (RNA-seq) will work.

TODO:

  • Add ability to not do extractSoftclippedRetain from terminal
  • Add selection for fileType for downloading non-sequencing data
  • Add ability to sample SAM files

Subsampling BAM files in current directory

This is a script similar to that of the the one that works with downloading files from ICGC, but here no manifest is needed because it samples the BAM files that are in the folder which this script is run. Another difference between this script and the script for ICGC files is that extracting softclipped reads is not included. This script will run without any arguments because there are defaults set internally.

The script takes in a couple arguments:

  • -t --threads are the number of threads that will be passed to samtools view to count and sample the large bam file. Default is 1 thread
  • -r --reads_wanted are the number of reads that are wanted in the output file. Some of the ICGC files have over 1 billion reads. Default is 15000000 reads
  • -d --delete is whether or not to delete the full downloaded ICGC file. Default is n
  • -s --seed is the seed that samtools view will use when sampling bam file. This is important to maintain repeatability Default is 333

TODO:

  • Can add the ability to select whether or not to do extractSoftclippedRetain
  • Add ability to sample SAM files

Things to Add to Both

  • Check if the "subsampled" file is the same as the original and repeat sampling with new seed.
  • Add ability to change log file name from default

About

Miscellaneous scripts written to help dealing with big data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages