Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion countSummary
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
Rscript /gpfs/tools/scripts/countSummary.R $@
Rscript /usr/local/share/igc/countSummary.R $@

2 changes: 1 addition & 1 deletion fpkmCluster
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
Rscript /gpfs/tools/scripts/FPKMtoCluster.R $@
Rscript /usr/local/share/igc/FPKMtoCluster.R $@

2 changes: 1 addition & 1 deletion fpkmPCA
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
Rscript /gpfs/tools/scripts/pcaFPKM.R $@
Rscript /usr/local/share/igc/pcaFPKM.R $@

28 changes: 14 additions & 14 deletions justHOMER
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ else
GENOME=$1
shift 1
#justSTAR $GENOME $DIR $@
for i in *.sam
do

paired=$(head -n 10000 $i | samtools view -S -f 0x1 - | wc -l)
if [[ $paired -gt 0 ]]
then
echo "Making paired end tag dir: tags/${i%Aligned.out.sam}"
makeTagDirectory tags/${i%Aligned.out.sam} $i -sspe -flip 2> ${i%Aligned.out.sam}.tagDirectory.log
else
echo "Making single end tag dir: tags/${i%Aligned.out.sam}"
makeTagDirectory tags/${i%Aligned.out.sam} $i -flip 2> ${i%Aligned.out.sam}.tagDirectory.log
fi
done
# for i in *.sam
# do
#
# paired=$(head -n 10000 $i | samtools view -S -f 0x1 - | wc -l)
# if [[ $paired -gt 0 ]]
# then
# echo "Making paired end tag dir: tags/${i%Aligned.out.sam}"
# makeTagDirectory tags/${i%Aligned.out.sam} $i -sspe -flip 2> ${i%Aligned.out.sam}.tagDirectory.log
# else
# echo "Making single end tag dir: tags/${i%Aligned.out.sam}"
# makeTagDirectory tags/${i%Aligned.out.sam} $i -flip 2> ${i%Aligned.out.sam}.tagDirectory.log
# fi
# done
analyzeRepeats.pl rna ${GENOME} -d tags/* -raw -count exons -condenseGenes -strand + -normMatrix > rawPlus.txt
analyzeRepeats.pl rna ${GENOME} -d tags/* -raw -count exons -condenseGenes -strand - -normMatrix > rawMinus.txt
plus=$(cat rawPlus.txt | cut -f 9 | tail -n +2 | paste -sd+ | bc)
Expand All @@ -41,7 +41,7 @@ else
countSummary
fpkmCluster
fpkmPCA
cleanSAMs .
# cleanSAMs .
echo "done aligning, building tag dirs, quantifying, and making sorted indexed bams"
rm -rf *_tmp *_STARtmp
fi
10 changes: 5 additions & 5 deletions justSTAR
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ then
echo "Usage: runSTAR genomeDir dirWith_R1.fastq.gz [star commands]"
echo "Genomes available:"

genomes=$(ls -d /gpfs/genomes/*.star)
genomes=$(ls -d /usr/local/share/igc/genomes/*.star)
for i in $genomes
do
echo ${i##*/}
Expand All @@ -14,7 +14,7 @@ else
GENOME=$1
DIR=$2
shift 2
STAR --genomeDir /gpfs/genomes/$GENOME --genomeLoad Remove > /dev/null 2> /dev/null
STAR --genomeDir /usr/local/share/igc/genomes/$GENOME --genomeLoad Remove > /dev/null 2> /dev/null
# first lets combine all of the R1 and R2 reads across lanes and multiple files
#for L in $(seq 99)
#do
Expand Down Expand Up @@ -48,16 +48,16 @@ else
if [ -e $R2 ]
then
echo "Processing paired reads: $R1 and $R2 using genome $GENOME and outputing to $PREFIX"
STAR --readFilesCommand zcat --genomeDir /gpfs/genomes/$GENOME --runThreadN 24 --outFilterIntronMotifs RemoveNoncanonical --readFilesIn $R1 $R2 --outFileNamePrefix $PREFIX $@ --genomeLoad LoadAndKeep --outSAMstrandField intronMotif $@ > ${PREFIX}.log
STAR --readFilesCommand zcat --genomeDir /usr/local/share/igc/genomes/$GENOME --runThreadN 24 --outFilterIntronMotifs RemoveNoncanonical --readFilesIn $R1 $R2 --outFileNamePrefix $PREFIX $@ --genomeLoad LoadAndKeep --outSAMstrandField intronMotif $@ > ${PREFIX}.log
else
echo "Processing single-end reads: $R1 using genome $GENOME and outputing to $PREFIX"
STAR --readFilesCommand zcat --outFilterIntronMotifs RemoveNoncanonical --genomeDir /gpfs/genomes/$GENOME --runThreadN 24 --readFilesIn $R1 --outFileNamePrefix $PREFIX $@ --genomeLoad LoadAndKeep --outSAMstrandField intronMotif $@ > ${PREFIX}.log
STAR --readFilesCommand zcat --outFilterIntronMotifs RemoveNoncanonical --genomeDir /usr/local/share/igc/genomes/$GENOME --runThreadN 24 --readFilesIn $R1 --outFileNamePrefix $PREFIX $@ --genomeLoad LoadAndKeep --outSAMstrandField intronMotif $@ > ${PREFIX}.log
fi
end_time="$(date -u +%M)"
elapsed="$((10#$end_time-10#$start_time))"
echo "Took $elapsed minutes to align $PREFIX"
done
STAR --genomeDir /gpfs/genomes/$GENOME --genomeLoad Remove > /dev/null
STAR --genomeDir /usr/local/share/igc/genomes/$GENOME --genomeLoad Remove > /dev/null
rm Aligned.out.sam
rm -rf *_tmp *_STARtmp
fi
2 changes: 1 addition & 1 deletion runSTAR
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ then
echo "set 4th arg if you don't want to run sam to bam conversion at the end (e.g. if you want sams only)"
echo "Genomes available:"

genomes=$(ls -d /gpfs/genomes/*.star)
genomes=$(ls -d /usr/local/share/igc/genomes/*.star*)
for i in $genomes
do
echo ${i##*/}
Expand Down