Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9240041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:07:13+00:00 2026-06-18T08:07:13+00:00

I want to perform the following exercise in linux. Impute2 is command line based

  • 0

I want to perform the following exercise in linux. Impute2 is command line based software. I want to change its options automatically using for-loops but its throwing following error in ** bold ** .

The -int option is range stating from ** $int1 to $int2 ** for every ** $chunk **.

It means that here for chunk 34 the int will be from 165752599 to 170752599 (difference of 5000001) and the for chunk 35 the int will be 170752600 to 175752600 and so on till last chunk i.e. chunk 49 and its int will be 240752614 to 245752614.

for chunk in $(seq 34 49)
for int1 in $(seq 165752599 5000001 240752614) 
for int2 in $(seq 170752599 5000001 245752614) 
do ./impute2 -use_prephased_g -m map.txt -h hap.txt -l legend.txt \
    -known_haps_g knownhap.txt -strand_g chr1_pos_strand_new \
    -align_by_maf_g -int $int1 $int2 -Ne 20000 -iter 30 -burnin 10 \
    -k 80 -k_hap 500 -os 0 1 2 3 -o result.out -o_gz -r result.summary \
    -i resul.info 
done
done
done

** bash: syntax error near unexpected token ‘for’ **

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T08:07:14+00:00Added an answer on June 18, 2026 at 8:07 am

    You have 3 fors and 3 dones but only one do. You need more do-do!

    ie, for x in a; do for y in b; do for z ...

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to make it so that when I perform the following command: $(input.button).hover(function(){
Suppose I want perform a simulation using the following function : fn1 <- function(N)
I am using Emgu CV 2.4.2 and want to perform the following algorithm: Get
I am a windows user and want to perform a crawl using following script
I want to perform the following task using JSF / Richfaces On click of
Sometimes I need to perform following command cp -rv demo demo_bkp However I want
I have a set of line segments. I want to perform the following operations
I want to write a procedure to perform a delete for the following i
I want to perform action on change in count of rows of an HTML
I want to perform changes in the code which was developed using iOS 3.0,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.