Skip to content

memory issues causes some processes not to complete #14

@asifzubair

Description

@asifzubair

For 8vs8, normal/senescent analysis, the app seems to be crashing.

It seems to not like system() calls and something like even sessionInfo() might make it crash:

�!label: sess_info (with options) 

List of 2
$ echo   : logi FALSE
$ comment: chr ""

.Quitting from lines 603-605 (atacseeker.Rmd) 
YError in system(paste(which, shQuote(names[i])), intern = TRUE, ignore.stderr = TRUE) : 
^  cannot popen '/usr/bin/which 'uname' 2>/dev/null', probable reason 'Cannot allocate memory'
OCalls: <Anonymous> ... withVisible -> eval -> eval -> sessionInfo -> Sys.which

Execution halted
�Warning message:
,system call failed: Cannot allocate memory 

Here are some arguments why system() should be avoided.

I should try to make everything use native R as much as possible and avoid system() calls. Some processes I have identified are:

  • coping bam files to /data/scratch. please see this SO
  • assembly mtDNA genome
  • creating bigwigs

The execution of latter two can be moved to the calling script and then use xargs to parallelize.

Finally, here is a page that talks about memory issues in R.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions