ANGSD: Analysis of next generation Sequencing Data

Latest tar.gz version is (0.938/0.939 on github), see Change_log for changes, and download it here.

User:Thorfinn: Difference between revisions

From angsd
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
# fix empty -bam/-b file
# fix empty -bam/-b file
# <pre>
#  
 
<pre>
int main(void)
int main(void)
{
{

Revision as of 18:11, 16 December 2013

  1. fix empty -bam/-b file
int main(void)
{
  struct sysinfo myinfo;
  unsigned long total_bytes;

  sysinfo(&myinfo);

  total_bytes = myinfo.mem_unit * myinfo.totalram;


  printf("total usable main memory is %lu B, %lu MB\n",
         total_bytes, total_bytes/1024/1024);

  return 0;

}