Skip to content

Error code 255 - assembling SRA data #749

Answered by henicorhina
henicorhina asked this question in Q&A
Discussion options

You must be logged in to vote

I solved this by renaming the fastq read names with sed, where data have been cleaned by illumiprocessor. Spades ran normally after this.

for dir in /path/to/clean/2_clean_reads/*; do
	echo $dir;
	cd $dir/split-adapter-quality-trimmed/
	NAME=$(basename *-READ1.fastq.gz '.gz')
	echo $NAME;
	gzip -d *-READ1.fastq.gz
	sed -i.copy "s/.1 / 1 /g" $NAME
	gzip $NAME
	NAME=$(basename *-READ2.fastq.gz '.gz')
	gzip -d *-READ2.fastq.gz
	sed -i.copy 's/.2 / 2 /g' $NAME
	gzip $NAME
	NAME=$(basename *-READ-singleton.fastq.gz '.gz')
	echo $NAME;
	gzip -d *-READ-singleton.fastq.gz
	sed -i.copy "s/.1 / 1 /g" $NAME
	sed -i.copy2 "s/.2 / 2 /g" $NAME
	gzip $NAME
	rm *.copy*
done

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by asl
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #263 on May 13, 2021 14:01.