SEQanswers

Go Back   SEQanswers > Bioinformatics > Bioinformatics



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash script to automate htseq-count gkuffel Bioinformatics 1 08-25-2016 12:18 PM
Free webinar: A step-by-step guide to ChIP-seq data analysis Abcam Events Events / Conferences 0 11-19-2014 04:39 AM
GATK recalibration confused, one step or two step? frankyue50 Bioinformatics 2 11-25-2013 02:25 PM
how to use bash script to make iterative loop through directory with two file types jddavis Bioinformatics 2 05-23-2013 07:02 AM
Running stampy in bash script grafab Bioinformatics 7 04-23-2012 02:00 AM

Reply
 
Thread Tools
Old 01-24-2018, 05:50 AM   #1
echo manolis
Junior Member
 
Location: Italy

Join Date: Jan 2018
Posts: 3
Default GATK4, bash script... step CreateSequenceGroupingTSV

Ubuntu, Bash 4.2.25



Hi!

I copy and paste the code about CreateSequenceGroupingTSV and in this way I created a python file...
When I'm going to run it I have the following error:

Code:
:~/GATK4/IlluminaExomePairEnd/0.pipe$ python 8.CreateSequenceGroupingTSV.py

File "8.CreateSequenceGroupingTSV.py", line 31
hg38_protection_tag = ":1+"
                          ^
IndentationError: unindent does not match any outer indentation level
the ^ symbol is under the last ", after +

Any help to fix it!?

Many thanks,
M
echo manolis is offline   Reply With Quote
Old 01-24-2018, 01:06 PM   #2
neavemj
Member
 
Location: MA, USA

Join Date: Feb 2014
Posts: 54
Default

Hi M,

In python, whitespace is very important - this is how code blocks are separated ("indentation level" in the error). I'd guess that when you copy and pasted the script, the spaces or tabs around the code was lost.

You could have a look at the original version and make sure that your version has the same number of spaces before each bit of code. Or you could download the python script (rather and copy and paste) which may preserve the whitespace.

Cheers,

Matt.
neavemj is offline   Reply With Quote
Reply

Tags
gatk

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off




All times are GMT -8. The time now is 05:53 PM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Single Sign On provided by vBSSO