2016-05-05 6 views
0

1つのライナーのいくつかの問題に実行している....コマンドラインコンパイルにエラー

ls *.fq.gz | cut -f 1 -d . | uniq | perl -pe 'chomp; system "bwa-0.7.9a mem -M /refs/GATK_bundle_2.3//human_g1k_v37.fasta -R'@RG\tID:Foo\tSM:bar' $_.1.fq.gz $_.2.fq.gz > $_.sam"' 

出力は

[E::bwa_set_rg] the read group line is not started with @RG 
CLMP10920-1[E::bwa_set_rg] the read group line is not started with @RG 
CLMP10920-2[E::bwa_set_rg] the read group line is not started with @RG 
CLMP10920-3[E::bwa_set_rg] the read group line is not started with @RG 
CLMP10920-4W[E::bwa_set_rg] the read group line is not started with @RG 
COL1A110908-1[E::bwa_set_rg] the read group line is not started with @RG 
COL1A110908-2[E::bwa_set_rg] the read group line is not started with @RG 
COL1A110908-3[E::bwa_set_rg] the read group line is not started with @RG 
[email protected]:~/testing/analysis$ 
周りが、このコマンドを実行するための解決策を見つけるのに苦労し、いくつかの読書を完了

です - コマンドの-Rオプション部分にネストされたものと関係があると思います。これらをエスケープする方法はありますか?

答えて

2

Perlにはsysfunctionがありません。 systemを意味しましたか?

また、シンタックスハイライトは引用符については正しいです。 R'@RGのsignle quoteは最初に引用符で囲まれた最初の文字列を終了しますが、これは正しいとは思われません。

+0

こんにちは、そこにシステムを入力して申し訳ありません...質問を更新しました – user3234810

+1

@ user3234810:引用符を修正してみてください。 – choroba

+0

それらを形づくる方法はありますか?それぞれの問題の前に\を試しましたが、プロンプト(>)が返されます。 – user3234810

関連する問題