Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for ID in $(ls | grep -P -o '.*(?=(_Ballgown_Table))')
- do
- cd ${ID}_Ballgown_Table
- echo process cutting ${ID}
- cat t_data.ctab | cut -f 12 | sed s/FPKM/${ID}/g > ../${ID}.fpkm
- if [ ! -f ../t_name.txt ];then
- cat t_data.ctab | cut -f 6 > ../t_name.txt
- fi
- pids="$pids $!"
- echo
- echo start waitting for finish cutting
- wait $pids
- cd ../
- done
- if [ ! -f finish.fpkm ];then
- paste `ls -tr *.fpkm` > only_all_id.fpkm
- paste t_name.txt only_all_id.fpkm > finish.fpkm
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement