/scripts/STAR_commands.txt
Version 1

No description specified

SEEK ID: https://fairdomhub.org/data_files/3187?version=1

Filename: STAR_commands.txt  Download

Format: Plain text document

Size: 4.85 KB

# MPE

##mapping reads back to evigene .tr output using STAR to check the percentage of reads that map

# STAR --version
## STAR_2.6.1d
#
# samtools --version
## samtools 1.9-52-g651bf14
## Using htslib 1.9-90-ga80f5fd
## Copyright (C) 2019 Genome Research Ltd.


#ulimit default 1024
ulimit -n 10000

#############
###Desiree###
#############

mkdir ../input/Desiree_star-index

# generate mapping reference index for merged okay and alt evigene transcripts
STAR --runThreadN 32 --runMode genomeGenerate --genomeDir ../input/Desiree_star-index \
--genomeFastaFiles ../../_A_01_evigene/output/Desiree.tr.fasta --limitGenomeGenerateRAM=242371378560

## mapping only Illumina reads!
#you cannot have paired and single end reads in same mapping!!!

#Desiree STAR SE mapping
STAR \
--runMode alignReads \
--runThreadN 32 \
--genomeDir ../input/Desiree_star-index \
--readFilesIn \
../../../_S_01_sequences/output/Desiree_cleaned_Illumina_SE.fastq \
--outFileNamePrefix ../output/Desiree_mapToEvigene_STAR_SE_ \
--outSAMtype BAM SortedByCoordinate


../../../_S_01_sequences/output/Desiree_cleaned_Illumina_PE.fastq \
 out1=../input/Desiree_cleaned_Illumina_PE_R1.fastq out2=../input/Desiree_cleaned_Illumina_PE_R2.fastq \
 fastawrap=700 overwrite=true ignorebadquality=t int=t


#Desiree STAR PE mapping
STAR \
--runMode alignReads \
--runThreadN 32 \
--genomeDir ../input/Desiree_star-index \
--readFilesIn \
../input/Desiree_cleaned_Illumina_PE_R1.fastq \
../input/Desiree_cleaned_Illumina_PE_R2.fastq \
--outFileNamePrefix ../output/Desiree_mapToEvigene_STAR_PE_ \
--outSAMtype BAM SortedByCoordinate




###########
###PW363###
###########

mkdir ../input/PW363_star-index

# generate mapping reference index for merged okay and alt evigene transcripts
STAR --runThreadN 32 --runMode genomeGenerate --genomeDir ../input/PW363_star-index \
--genomeFastaFiles ../../_A_01_evigene/output/PW363.tr.fasta --limitGenomeGenerateRAM=242371378560

## mapping only Illumina reads!
#you cannot have paired and single end reads in same mapping!!!


../../../_S_01_sequences/output/PW363IlluminaDSNPE90.fastq.gz \
out1=../input/PW363_cleaned_Illumina_PE_R1.fastq \
out2=../input/PW363_cleaned_Illumina_PE_R2.fastq \
fastawrap=700 overwrite=true int=t

#PW363 STAR PE mapping
STAR \
--runMode alignReads \
--runThreadN 32 \
--genomeDir ../input/PW363_star-index \
--readFilesIn \
../input/PW363_cleaned_Illumina_PE_R1.fastq \
../input/PW363_cleaned_Illumina_PE_R2.fastq \
--outFileNamePrefix ../output/PW363_mapToEvigene_STAR_PE_ \
--outSAMtype BAM SortedByCoordinate




###########
###Rywal###
###########

mkdir ../input/Rywal_star-index

# generate mapping reference index for merged okay and alt evigene transcripts
STAR --runThreadN 32 --runMode genomeGenerate --genomeDir ../input/Rywal_star-index \
--genomeFastaFiles ../../_A_01_evigene/output/Rywal.tr.fasta --limitGenomeGenerateRAM=242371378560

## mapping only Illumina reads!
#you cannot have paired and single end reads in same mapping!!!

gunzip /DATB/fitows_prenos/markop/potato_transcriptome_assemblies/Rywal/0_cleaned_reads/RywalNahG_cleaned_Illumina_SE.fastq.gz

#Rywal STAR SE mapping
STAR \
--runMode alignReads \
--runThreadN 32 \
--genomeDir ../input/Rywal_star-index \
--readFilesIn \
../../../_S_01_sequences/output/RywalNahG_cleaned_Illumina_SE.fastq \
--outFileNamePrefix ../output/Rywal_mapToEvigene_STAR_SE_ \
--outSAMtype BAM SortedByCoordinate


../../../_S_01_sequences/output/RywalNahG_cleaned_Illumina_PE.fastq.gz \
 out1=../input/Rywal_cleaned_Illumina_PE_R1.fastq out2=../input/Rywal_cleaned_Illumina_PE_R2.fastq \
 fastawrap=700 overwrite=true ignorebadquality=t int=t


#Rywal STAR PE mapping
STAR \
--runMode alignReads \
--runThreadN 32 \
--genomeDir ../input/Rywal_star-index \
--readFilesIn \
../input/Rywal_cleaned_Illumina_PE_R1.fastq \
../input/Rywal_cleaned_Illumina_PE_R2.fastq \
--outFileNamePrefix ../output/Rywal_mapToEvigene_STAR_PE_ \
--outSAMtype BAM SortedByCoordinate


mkdir ../output/output_STAR_bams
mv ../output/*.bam ../output/output_STAR_bams/

#index bam file
samtools index ../output/output_STAR_bams/Desiree_mapToEvigene_STAR_SE_Aligned.sortedByCoord.out.bam
samtools index ../output/output_STAR_bams/Desiree_mapToEvigene_STAR_PE_Aligned.sortedByCoord.out.bam
#index bam file
samtools index ../output/output_STAR_bams/PW363_mapToEvigene_STAR_PE_Aligned.sortedByCoord.out.bam
#index bam file
samtools index ../output/output_STAR_bams/Rywal_mapToEvigene_STAR_SE_Aligned.sortedByCoord.out.bam
samtools index ../output/output_STAR_bams/Rywal_mapToEvigene_STAR_PE_Aligned.sortedByCoord.out.bam

mkdir ../output/output_STAR_logs-n-SJ
mv ../output/*.out* ../output/output_STAR_logs-n-SJ/
tar -zcvf ../output/output_STAR_logs-n-SJ.tar.gz ../output/output_STAR_logs-n-SJ/
rm -rf ../output/output_STAR_logs-n-SJ

rm ../input/*Desiree*
rm ../input/*PW363*
rm ../input/*Rywal*

tar -cvf ../output/output_STAR_bams.tar ../output/output_STAR_bams
rm -rf ../output/output_STAR_bams
help Creators and Submitter
Creator
Submitter
Activity

Views: 2904   Downloads: 80

Created: 16th Nov 2019 at 12:01

Last updated: 25th Nov 2019 at 23:33

help Tags

This item has not yet been tagged.

help Attributions

None

Version History

Version 1 (earliest) Created 16th Nov 2019 at 12:01 by Maja Zagorscak

No revision comments

Powered by
(v.1.18.0)