cat <(pcat ./40/SRP060340/sra.sra.SRP060340.MD.gz | head -1 | sed 's/\trun_acc\tstudy_acc\t/\texternal_id\tstudy\t/') <(pcat ./40/SRP060340/sra.sra.SRP060340.MD.gz | tail -n+2) | gzip > ./40/SRP060340/sra.sra.SRP060340.MD.gz.1 cat <(pcat ./87/SRP006787/sra.sra.SRP006787.MD.gz | head -1 | sed 's/\trun_acc\tstudy_acc\t/\texternal_id\tstudy\t/') <(pcat ./87/SRP006787/sra.sra.SRP006787.MD.gz | tail -n+2) | gzip > ./87/SRP006787/sra.sra.SRP006787.MD.gz.1 cat <(pcat ./40/SRP060340/sra.recount_qc.SRP060340.MD.gz | head -1 | sed 's/\trun_acc\tstudy_acc\t/\texternal_id\tstudy\t/') <(pcat ./40/SRP060340/sra.recount_qc.SRP060340.MD.gz | tail -n+2) | gzip > ./40/SRP060340/sra.recount_qc.SRP060340.MD.gz.1 cat <(pcat ./87/SRP006787/sra.recount_qc.SRP006787.MD.gz | head -1 | sed 's/\trun_acc\tstudy_acc\t/\texternal_id\tstudy\t/') <(pcat ./87/SRP006787/sra.recount_qc.SRP006787.MD.gz | tail -n+2) | gzip > ./87/SRP006787/sra.recount_qc.SRP006787.MD.gz.1 cat <(pcat ./87/SRP186687/sra.sra.SRP186687.MD.gz | head -1 | sed 's/\trun_acc\tstudy_acc\t/\texternal_id\tstudy\t/') <(pcat ./87/SRP186687/sra.sra.SRP186687.MD.gz | tail -n+2) | gzip > ./87/SRP186687/sra.sra.SRP186687.MD.gz.1 cat <(pcat ./87/SRP186687/sra.sra.SRP186687.MD.gz | head -1 | sed 's/\trun_acc\tstudy_acc\t/\texternal_id\tstudy\t/') <(pcat ./87/SRP186687/sra.sra.SRP186687.MD.gz | tail -n+2) | gzip > ./87/SRP186687/sra.sra.SRP186687.MD.gz.1 cat <(pcat ./87/SRP186687/sra.sra.SRP186687.MD.gz | head -1 | sed 's/\trun_acc\tstudy_acc\t/\texternal_id\tstudy\t/') <(pcat ./87/SRP186687/sra.sra.SRP186687.MD.gz | tail -n+2) | gzip > ./87/SRP186687/sra.sra.SRP186687.MD.gz.1 cat <(pcat ./87/SRP186687/sra.sra.SRP186687.MD.gz | head -1 | sed 's/\trun_acc\tstudy_acc\t/\texternal_id\tstudy\t/') <(pcat ./87/SRP186687/sra.sra.SRP186687.MD.gz | tail -n+2) | gzip > ./87/SRP186687/sra.sra.SRP186687.MD.gz.1 ./40/SRP060340/sra.recount_qc.SRP060340.MD.gz ./40/SRP060340/sra.sra.SRP060340.MD.gz ./40/SRP060340/sra.recount_project.SRP060340.MD.gz ./sra.recount_project.gz ./87/SRP006787/sra.sra.SRP006787.MD.gz ./87/SRP006787/sra.recount_qc.SRP006787.MD.gz ./87/SRP006787/sra.recount_project.SRP006787.MD.gz cat ../eriks | perl -ne 'chomp; $f=$_; $f=~/(..)$/; $lo=$1; `/bin/bash ../../../../metadata_for_study.sh $lo $f srav1m.samples.tsv mouse`;' find . -name "*sra.recount_project.*" | fgrep -v "pre" | fgrep -v "srrs" | xargs -I{} pcat {} | tail -n+2 | fgrep -v "rail_id" >> ./sra.recount_project