Bash script for calling CNVs using cnvkit
1
0
Entering edit mode
4.8 years ago
brunobsouzaa ▴ 830

Hi Guys, I'm using bash loop for calling CNVs between multiple samples using cnvkit. The loop is the following:

for i in $(ls *.Tumor.cnr | rev | cut -c 10- | rev | uniq)
do 
     cnvkit.py call ${i}.Tumor.cnr -y -m threshold -t=-2.0,-0.4,0.3,0.8,1.1,1.4,1.7 -o ${i}.call.cnr;
done;

But I'm getting the following error: sintax error near token'done'

Does anyone know what I'm doing wrong??

software error • 923 views
ADD COMMENT
0
Entering edit mode

Sorry guys, found the error.... No need to respond!

ADD REPLY
0
Entering edit mode

Post what the error was so it helps someone in future.

ADD REPLY
0
Entering edit mode
4.8 years ago
brunobsouzaa ▴ 830

Fixed error: The error was the missing ";" after "| uniq)"

for i in $(ls *.Tumor.cnr | rev | cut -c 10- | rev | uniq);
do 
     cnvkit.py call ${i}.Tumor.cnr -y -m threshold -t=-2.0,-0.4,0.3,0.8,1.1,1.4,1.7 -o ${i}.call.cnr;
done;
ADD COMMENT

Login before adding your answer.

Traffic: 3039 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6