Open xiaoli0 opened 6 years ago
Hi Xiao. No idea about how to do the link in makefile. Is that simply adding -llzma -lbz2 to make line like this?:
$(CC) $(OPTS) $(INCLUDES) -o compactRepeats compactRepeats.o htslib/libhts.a -lz -lpthread -llzma -lbz2
$(CC) $(OPTS) $(INCLUDES) -o extractSoftclipped extractSoftclipped.o htslib/libhts.a -lz -lpthread -llzma -lbz2
Yes, that should work, you can simply add that to lines 21 and 24 of the make file.
Thank you, Ryan. I have also tested your code to retain the read ID and CIGAR string (from biostars), they work perfectly on my data.
Compile failed with error message like this:
This can be resolved by linking those two libraries:
-llzma -lbz2
when compiling extractSoftclipped.c in the makefile.