+ date=2019-10-01 + data_source=data_sources + organism='Homo sapiens' + study=SRP200780 + org=human + dsource=sra + preds_file=Human.SRA_curated_predict.meta.w_rids.tsv + [[ human == \m\o\u\s\e ]] + perl -e '$study="SRP200780"; $study=~/(..)$/; $lo=$1; `mkdir -p $lo/$study`; print "$lo/$study\n";' ++ cat SRP200780.dir + dir=80/SRP200780 + cat samples.tsv.header /dev/fd/63 ++ fgrep ' SRP200780 ' samples.tsv + proj_header='rail_id external_id study project organism file_source metadata_source date_processed' + dsource=data_sources/sra + extra_proj_cols='Homo sapiens data_sources/sra data_sources/sra 2019-10-01' + gzip + cat /dev/fd/63 /dev/fd/62 ++ echo 'rail_id external_id study project organism file_source metadata_source date_processed' ++ tail -n+2 80/SRP200780/samples.tsv.SRP200780 ++ cut -f 1-3 ++ perl -ne 'chomp; $f=$_; ($rid,$run,$study)=split(/\t/,$f); print "$f\t$study\tHomo sapiens data_sources/sra data_sources/sra 2019-10-01\n";' + cut -f 1-41 80/SRP200780/samples.tsv.SRP200780 + gzip + cut -f 1-3,42-150 80/SRP200780/samples.tsv.SRP200780 + gzip + gzip + cat /dev/fd/63 /dev/fd/62 ++ head -1 Human.SRA_curated_predict.meta.w_rids.tsv ++ fgrep ' SRP200780 ' Human.SRA_curated_predict.meta.w_rids.tsv + rm 80/SRP200780/samples.tsv.SRP200780