[img]file:///C:\Users\Jiang\Documents\Tencent Files\462530640\Image\C2C\@3PM0HEL7GX{_8@X]6%{VSC.png[/img]是这样的,这里有两个文件夹,其中BRCA_seg_file文件夹里是1000多个乳腺癌病人的snp文件(格式都是这样的: TCGA-A1-A0SK-01A-12R-A084-07.hg19.seg.txt),而ABSOLUTE_samp.csv里面是TNBC的样本的barcode,就是snp文件去掉.hg19.seg.txt后缀。
我想将BRCA_seg_file里面这些TNBC样本的文件都拷贝到TNBC_seg_file文件夹里,结果报错了,代码及报错信息如下:
cat *.csv | while read id;
do cp BRCA_seg_file/$id.hg19.seg.txt TNBC_seg_file[img]file:///C:\Users\Jiang\AppData\Local\Temp\_XV~9AKTUT)QS$3LX16M424.gif[/img]/;
done
cp: cannot stat 'BRCA_seg_file/TCGA-A1-A0SK-01A-12R-A084-07'$'\r''.hg19.seg.txt': No such file or directory
cp: cannot stat 'BRCA_seg_file/TCGA-AN-A04D-01A-21R-A034-07'$'\r''.hg19.seg.txt': No such file or directory
cp: cannot stat 'BRCA_seg_file/TCGA-E2-A1LS-01A-12R-A157-07'$'\r''.hg19.seg.txt': No such file or directory
cp: cannot stat 'BRCA_seg_file/TCGA-AN-A0AR-01A-11R-A00Z-07'$'\r''.hg19.seg.txt': No such file or directory
阅读全文
收起全文