- download human genome rference sequence:
curl "http://ftp.ensembl.org/pub/current_fasta/homo_sapiens/dna/Homo_sapiens.GRCh38.dna.chromosome.X.fa.gz" --output Homo_sapiens.GRCh38.dna.chromosome.X.fa.gz
- download samples
- run script
scripts/read_dept_plot.sh <ref sequence> <tumor reads 1> <tumor reads 2> <wild reads 1> <wild reads 2>
- create index for reference sequence
samtools faidx
- create bwa index for reference sequence
bwa index
- map tumor samples and wild type samples to reference sequence
bwa mem
- convert sam files to bam files
samtools view -S -b
- sort bam files
samtools sort
- index bam msorted files
samtools index
- generate read-dept statistics of mapped samples
samtools depth
- run R script to plot read-dept plot
Rscript ./amcr.R