Skip to content

Instantly share code, notes, and snippets.

View cannin's full-sized avatar

Augustin Luna cannin

View GitHub Profile
@cannin
cannin / basicTraversal_3.groovy
Last active May 10, 2021 12:53
BioPAX Tutorial; Examples from the Paxtools User's Guide. (PubMed ID: 24068901 Link: https://journals.plos.org/ploscompbiol/article?id=10.1371/journal.pcbi.1003194)
//BASIC TRAVERSAL
// Get names for all elements in a BioPAX OWL file and then for just Proteins
import org.biopax.paxtools.io.BioPAXIOHandler;
import org.biopax.paxtools.io.SimpleIOHandler;
import org.biopax.paxtools.model.Model;
import org.biopax.paxtools.model.BioPAXElement;
import org.biopax.paxtools.model.level3.Protein;
// Load a sample test BioPAX File via Simple IO Handler
InputStream f = new FileInputStream(new File("data/biopax3-short-metabolic-pathway.owl"));
@tanaikech
tanaikech / submit.md
Last active November 18, 2024 13:34
Downloading Shared Files on Google Drive Using Curl

Downloading Shared Files on Google Drive Using Curl

When the shared files on Google Drive is downloaded, it is necessary to change the download method by the file size. The boundary of file size when the method is changed is about 40MB.

File size < 40MB

CURL

filename="### filename ###"
fileid="### file ID ###"
curl -L -o ${filename} "https://drive.google.com/uc?export=download&amp;id=${fileid}"