比如获得了一下数据
如何知道每个样本的名字呢 ?
首先安装软件
sh -c "$(curl -fsSL https://ftp.ncbi.nlm.nih.gov/entrez/entrezdirect/install-edirect.sh)"
接下来
$ head find.command
esearch -db sra -query SRR1945435 | efetch -format runinfo | cut -d, -f1,30 >> SampleName
esearch -db sra -query SRR1945436 | efetch -format runinfo | cut -d, -f1,30 >> SampleName
esearch -db sra -query SRR1945437 | efetch -format runinfo | cut -d, -f1,30 >> SampleName
esearch -db sra -query SRR1945438 | efetch -format runinfo | cut -d, -f1,30 >> SampleName
esearch -db sra -query SRR1945439 | efetch -format runinfo | cut -d, -f1,30 >> SampleName
esearch -db sra -query SRR1945440 | efetch -format runinfo | cut -d, -f1,30 >> SampleName
esearch -db sra -query SRR1945441 | efetch -format runinfo | cut -d, -f1,30 >> SampleName
esearch -db sra -query SRR1945442 | efetch -format runinfo | cut -d, -f1,30 >> SampleName
esearch -db sra -query SRR1945443 | efetch -format runinfo | cut -d, -f1,30 >> SampleName
esearch -db sra -query SRR1945444 | efetch -format runinfo | cut -d, -f1,30 >> SampleName
$ head SampleName
Run,SampleName
SRR1945435,88
Run,SampleName
SRR1945436,108
Run,SampleName
SRR1945437,139
Run,SampleName
SRR1945438,159
Run,SampleName
SRR1945439,265