Skip to content

Instantly share code, notes, and snippets.

View gatoravi's full-sized avatar

Avinash R gatoravi

View GitHub Profile
@gatoravi
gatoravi / 2mer.cc
Last active September 30, 2019 23:33
Takes a kmer and fasta as input and lists all positions //within the fasta for that kmer
/*
Copyright 2019 Avinash Ramu
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR O
@gatoravi
gatoravi / velocyto_install_notes.md
Created January 16, 2020 18:47
Installing velocyto.R on Mac

On a Mac, the linker ld looks at the variable $LIBRARY_PATH

I was trying to install Velocyto.R on Rstudio.

One of the pre-reqs is boost, I installed boost using brew install boost, this links the boost libraries under /usr/local/Cellar/boost/ to /usr/local/lib.

However R was unable to find the boost libraries when installing velocyto.R I had to tell the linker to find the required boost library by setting the environment variable: Sys.setenv(LIBRARY_PATH = "/usr/local/lib") This R command sets the environment variable LIBRARY_PATH and the linking program ld can then find the required boost libraries.