Skip to content

Commit

Permalink
remove bedgraph temp files
Browse files Browse the repository at this point in the history
  • Loading branch information
Imamachi-n committed Feb 20, 2017
1 parent 528493a commit 3c94097
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions RNA-seq_analysis/RNA-seq_unstr_paired-end_1_mapping.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ bedtools genomecov -ibam ./STAR_output_${file}/${file}_4_STAR_result_Aligned.sor
echo "track type=bedGraph name=${file} description=${file} visibility=2 maxHeightPixels=40:40:20" > ./UCSC_visual_${file}/tmp.txt
cat ./UCSC_visual_${file}/tmp.txt ./UCSC_visual_${file}/${file}_4_result.bg > ./UCSC_visual_${file}/${file}_4_result_for_UCSC.bg
bzip2 -c ./UCSC_visual_${file}/${file}_4_result_for_UCSC.bg > ./UCSC_visual_${file}/${file}_4_result_for_UCSC.bg.bz2
rm ./UCSC_visual_${file}/${file}_4_result.bg
rm ./UCSC_visual_${file}/${file}_4_result_for_UCSC.bg

# featureCounts - read counts
mkdir featureCounts_result_${file}
Expand Down
2 changes: 2 additions & 0 deletions RNA-seq_analysis/RNA-seq_unstr_single-end_1_mapping.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ bedtools genomecov -ibam ./STAR_output_${file}/${file}_4_STAR_result_Aligned.sor
echo "track type=bedGraph name=${file} description=${file} visibility=2 maxHeightPixels=40:40:20" > ./UCSC_visual_${file}/tmp.txt
cat ./UCSC_visual_${file}/tmp.txt ./UCSC_visual_${file}/${file}_4_result.bg > ./UCSC_visual_${file}/${file}_4_result_for_UCSC.bg
bzip2 -c ./UCSC_visual_${file}/${file}_4_result_for_UCSC.bg > ./UCSC_visual_${file}/${file}_4_result_for_UCSC.bg.bz2
rm ./UCSC_visual_${file}/${file}_4_result.bg
rm ./UCSC_visual_${file}/${file}_4_result_for_UCSC.bg

# featureCounts - read counts
mkdir featureCounts_result_${file}
Expand Down

0 comments on commit 3c94097

Please sign in to comment.