Open yjzhang1020 opened 6 years ago
Hi Graham, I found the problem with the help of my senior brother. A variable in your example_cht_workflow. Sh was miswritten.I copied the code you wrote, causing the problem above.
for INDIVIDUAL in $(cat $H3K27AC_SAMPLES_FILE)
#
# create CHT input file for this individual
#
python $WASP/CHT/extract_haplotype_read_counts.py \
--chrom $DATA_DIR/chromInfo.hg19.txt \
--snp_index $DATA_DIR/snp_index.h5 \
--snp_tab $DATA_DIR/snp_tab.h5 \
--geno_prob $DATA_DIR/geno_probs.h5 \
--haplotype $DATA_DIR/haps.h5 \
--samples $ALL_SAMPLES_FILE \
--individual $INDIVIDUAL \
--ref_as_counts $DATA_DIR/H3K27ac/ref_as_counts.$INDIVIDUAL.h5 \
--alt_as_counts $DATA_DIR/H3K27ac/alt_as_counts.$INDIVIDUAL.h5 \
--other_as_counts $DATA_DIR/H3K27ac/other_as_counts.$INDIVIDUAL.h5 \
--read_counts $DATA_DIT/H3K27ac/read_counts.$INDIVIDUAL.h5 \
$DATA_DIR/H3K27ac/chr22.peaks.txt.gz \
| gzip > $DATA_DIR/H3K27ac/haplotype_read_counts.$INDIVIDUAL.txt.gz
done
--read_counts $DATA_DIT/H3K27ac/read_counts.$INDIVIDUAL.h5 \
#it should be
--read_counts $DATA_DIR/H3K27ac/read_counts.$INDIVIDUAL.h5 \
And there is also a slight error in your looping grammar. I should put a "do" before line 96
Hi Graham,
I tried to run the example extract_haplotype_read_stock.py, and I got an error message like this.
I'm sure the file exists, and I'm using the file in the example you gave. I tried to solve the problem for a long time, but still got nothing.Can you give me some guidance? Thank you .The following is the detailed error message.