Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.87 KB | None | 0 0
  1. analyse(){
  2. geneSetFilePath=$1;
  3. outputFile=$2;
  4. analyticsFile=$ATLAS_EXPS/E-GEOD-59831/E-GEOD-59831-analytics.tsv
  5. irap_GSE_piano --tsv=$analyticsFile --pvalue-col=3 --foldchange-col=4 --title="title" --pvalue=0.05 --gs_fdr=0.1 --method=fisher-exact --dup-use-best --plot-annot-only --top=10 --minsize 5 --maxsize 100 --descr $ATLAS_PROD/bioentity_properties/go/goIDToTerm.tsv.decorate.aux --go=$geneSetFilePath --out=$outputFile;
  6. }
  7.  
  8.  
  9. # a "normal" analysis
  10. analyse /nfs/production3/ma/home/atlas3-production/bioentity_properties/archive/ensembl_88_35/mus_musculus.ensgene.go.tsv /var/tmp/out1
  11.  
  12.  
  13. #There are some IDs with no go terms:
  14. comm -23 <( cut -f 1 /nfs/production3/ma/home/atlas3-production/bioentity_properties/archive/ensembl_88_35/mus_musculus.ensgene.go.tsv | sort -u ) <(cut -f1 $ATLAS_EXPS/E-GEOD-59831/E-GEOD-59831-analytics.tsv | sort -u ) | wc -l
  15. # 289
  16.  
  17. #Make a version of the annotations file with these terms added to the end
  18. cat /nfs/production3/ma/home/atlas3-production/bioentity_properties/archive/ensembl_88_35/mus_musculus.ensgene.go.tsv <( comm -23 <( cut -f 1 /nfs/production3/ma/home/atlas3-production/bioentity_properties/archive/ensembl_88_35/mus_musculus.ensgene.go.tsv | sort -u ) <(cut -f1 $ATLAS_EXPS/E-GEOD-59831/E-GEOD-59831-analytics.tsv | sort -u ) | sed 's/$/\t/' ) > /var/tmp/mus_musculus.ensgene.go.tsv-ids-at-the-end
  19.  
  20.  
  21. analyse /var/tmp/mus_musculus.ensgene.go.tsv-ids-at-the-end /var/tmp/out2
  22.  
  23. # No results as predicted!
  24. diff /var/tmp/out1.tsv /var/tmp/out2.tsv | wc -l
  25. # 0
  26.  
  27. #filter out all the gene id -> empty
  28. grep -ve "[[:space:]]$" /nfs/production3/ma/home/atlas3-production/bioentity_properties/archive/ensembl_88_35/mus_musculus.ensgene.go.tsv > /var/tmp/mus_musculus.ensgene.go.tsv-no-empty-goterms
  29.  
  30. analyse /var/tmp/mus_musculus.ensgene.go.tsv-no-empty-goterms /var/tmp/out3
  31.  
  32. # Lots of results!
  33. diff /var/tmp/out1.tsv /var/tmp/out3.tsv | wc -l
  34. # 9724
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement