比如獲得了一下數(shù)據(jù)
如何知道每個(gè)樣本的名字呢 ?
首先安裝軟件
sh -c "$(curl -fsSL https://ftp.ncbi.nlm.nih.gov/entrez/entrezdirect/install-edirect.sh)"
接下來(lái)
$ 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