-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #99 from PatrickDeelen/master
public rna seq
- Loading branch information
Showing
68 changed files
with
1,613 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
compute4/RNA-seq_genotype_calling/protocols/CreateSNVMixFileList.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#MOLGENIS walltime=1:00:00 nodes=1 cores=1 mem=4 | ||
|
||
#FOREACH mergedStudy | ||
|
||
genotypeFolder="${genotypeFolder}" | ||
JAVA_HOME="${JAVA_HOME}" | ||
|
||
declare -a samples=(${ssvQuoted(sample)}) | ||
declare -a snvmixOuts=(${ssvQuoted(snvmixOut)}) | ||
<#noparse> | ||
|
||
mkdir -p ${genotypeFolder} | ||
|
||
echo "genotypeFolder=${genotypeFolder}" | ||
echo "snvMixOuts=${snvmixOuts[*]}" | ||
echo "samples=${samples[*]}" | ||
|
||
rm -f ${genotypeFolder}/fileList.txt | ||
|
||
|
||
|
||
declare -a samplesProcessed=() | ||
|
||
for (( i = 0 ; i < ${#samples[@]} ; i++ )) | ||
do | ||
|
||
for processedSample in ${samplesProcessed[@]} | ||
do | ||
if [ $processedSample == ${samples[$i]} ] | ||
then | ||
continue 2 | ||
fi | ||
done | ||
|
||
samplesProcessed=("${samplesProcessed[@]}" "${samples[$i]}") | ||
echo -e "sample:${samples[$i]}\tgenotype file:${snvmixOuts[$i]}" | ||
|
||
if [ -f ${snvmixOuts[$i]} ] | ||
then | ||
echo -e "${samples[$i]}\t${snvmixOuts[$i]}" >> ${genotypeFolder}/fileList.txt | ||
else | ||
echo "Skipping sample ${samples[$i]} no snvmix output" | ||
fi | ||
|
||
|
||
done | ||
|
||
</#noparse> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
name,protocol_name,PreviousSteps_name | ||
SNVMix,SNVMix, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
name,protocol_name,PreviousSteps_name | ||
CreateSNVMixFileList,CreateSNVMixFileList, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
name,protocol_name,PreviousSteps_name | ||
ConvertSNVMixToGen,ConvertSNVMixToGen, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
compute4/RNA-seq_quantify_fluxCapacitor/protocols/FluxCapacitor.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
compute4/RNA-seq_quantify_fluxCapacitor/protocols/MakeExpressionTable.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 0 additions & 35 deletions
35
compute4/RNA-seq_quantify_gene_level/protocols/HTSeq-count.ftl
This file was deleted.
Oops, something went wrong.
33 changes: 22 additions & 11 deletions
33
compute4/RNA-seq_quantify_gene_level/protocols/HTSeq_count.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,48 @@ | ||
#MOLGENIS walltime=20:00:00 nodes=1 cores=1 mem=6 | ||
#MOLGENIS walltime=24:00:00 nodes=1 cores=1 mem=6 | ||
|
||
sortedBam="${sortedBam}" | ||
htseq_count="${htseq_count}" | ||
annotationGtf="${annotationGtf}" | ||
txtExpression="${txtExpression}" | ||
samtools=${samtools} | ||
python=${python} | ||
|
||
<#noparse> | ||
|
||
echo -e "sortedBam=${sortedBam}\nannotationGtf=${annotationGtf}\ntxtExpression=${txtExpression}" | ||
|
||
alloutputsexist ${txtExpression} | ||
|
||
echo "Sorting bam file by name" | ||
|
||
${samtools} sort \ | ||
-n \ | ||
${sortedBam} \ | ||
${sortedBam%bam}byName | ||
${samtools} \ | ||
sort \ | ||
-n \ | ||
${sortedBam} \ | ||
${TMPDIR}/nameSorted.bam | ||
|
||
|
||
echo -e "\nQuantifying expression" | ||
|
||
${samtools} \ | ||
if ${samtools} \ | ||
view -h \ | ||
${sortedBam%bam}byName.bam | \ | ||
/target/gpfs2/gcc/tools/Python-2.7.3/bin/python \ | ||
${htseq_count} \ | ||
${TMPDIR}/nameSorted.bam | \ | ||
/target/gpfs2/gcc/tools/Python-2.7.3/bin/python \ | ||
${htseq_count} \ | ||
-m union \ | ||
-s no \ | ||
- \ | ||
${annotationGtf} | \ | ||
head -n -5 \ | ||
> ${txtExpression} | ||
head -n -5 \ | ||
> ${txtExpression}___tmp___; | ||
then | ||
echo "Gene count succesfull" | ||
mv ${txtExpression}___tmp___ ${txtExpression} | ||
else | ||
echo "Genecount failed" | ||
fi | ||
|
||
rm ${sortedBam%bam}byName | ||
|
||
echo "Finished!" | ||
</#noparse> |
19 changes: 12 additions & 7 deletions
19
compute4/RNA-seq_quantify_gene_level/protocols/MakeExpressionTable.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,25 @@ | ||
#MOLGENIS walltime=6:00:00 nodes=1 cores=1 mem=4 | ||
#MOLGENIS walltime=24:00:00 nodes=1 cores=1 mem=6 | ||
|
||
#FOREACH mergedStudy | ||
mkdir -p ${expressionFolder} | ||
|
||
rm -f ${expressionFolder}/fileList.txt | ||
|
||
<#assign samples=sample?size - 1> | ||
<#list 0..samples as i> | ||
echo -e "${sample[i]}\t${txtExpression[i]}" >> ${expressionFolder}/fileList.txt | ||
<#assign runs=run?size - 1> | ||
<#list 0..runs as i> | ||
echo -e "${run[i]}\t${txtExpression[i]}" >> ${expressionFolder}/fileList.txt | ||
</#list> | ||
|
||
${JAVA_HOME}/bin/java \ | ||
if ${JAVA_HOME}/bin/java \ | ||
-Xmx4g \ | ||
-jar ${processReadCountsJar} \ | ||
--mode makeExpressionTable \ | ||
--fileList ${expressionFolder}/fileList.txt \ | ||
--annot ${geneAnnotationTxt} \ | ||
--out ${expressionTable} | ||
|
||
--out ${expressionTable}___tmp___ | ||
then | ||
echo "table create succesfull" | ||
mv ${expressionTable}___tmp___ ${expressionTable} | ||
else | ||
echo "table create failed" | ||
fi |
Oops, something went wrong.