News for hackers. Stuff that matters.
Re:A farewell to bioinformatics (2012) by kanzure on Sunday January 27, 2013 @01:18AM (#5123353)
Regarding samtools, it doesn't sound very good from what I'm hearing:

"Look at the disgusting state of the samtools code base. Many more cycles are being used because people write garbage. For a tool that is intimately tied to research, the absence of associated code commentary and meaningful commit messages is very poor. The code itself is not well self documenting either."

commit log:

http://samtools.svn.sourceforge.net/viewvc/samtools/trunk/sa...

code:

http://samtools.svn.sourceforge.net/viewvc/samtools/trunk/sa...

Re:A farewell to bioinformatics (2012) by epistasis on Sunday January 27, 2013 @01:38AM (#5123423)
I can't find that critique with Google.

As I said, the style is very terse, and I have my suspicions that this is by design to minimize the number of less-qualified programmers trying to submit sub-standard code back to the project. (Edit: since it's been 10 minutes and I still can't reply to tomalsky's comment, I should point out that my "suspicions" are a joke; read the linked code sample and judge its quality for yourself.)

I have dived deep into the samtools code, rewritten chunks of file I/O inside it, messed with alternate formats, and my personal experience is that it's been easier for me to change, adapt, and understand it then any other open-source C project I've tried to dive into, such as, say, GNU join.

If anybody can point to where samtools is using many more cycles than it has to, please let me know! The worst part about it is that the compression and decompression is not multithreaded, but that is being worked out, I believe.

Re:A farewell to bioinformatics (2012) by kanzure on Sunday January 27, 2013 @02:17AM (#5123527)
> I can't find that critique with Google.

I didn't link the source because I am ashamed to admit that I clicked on the reddit link that was posted in this thread.

http://www.reddit.com/r/bioinformatics/comments/179e9k/a_far...

Re:A farewell to bioinformatics (2012) by east2west on Sunday January 27, 2013 @01:42AM (#5123435)
samtools is among the better software in sequencing-data analysis. It is also great in defining formally the file format it uses. The same cannot be said of many other tools. For my recent work in RNA-Seq, samtools is the most robust and trustworthy tool I looked at and used, and I looked at almost every popular tool, the major exception being RSEM. If only all bioinformatics tools are more like samtools.
Re:A farewell to bioinformatics (2012) by aheilbut on Sunday January 27, 2013 @01:37AM (#5123417)
It works just fine. And iterating through files is not rocket science, anyway; it's not hard to follow what is going on.