Skip to content

Instantly share code, notes, and snippets.

View peranti's full-sized avatar

Pradeep Eranti peranti

  • Paris
  • 11:17 (UTC +02:00)
View GitHub Profile
@peranti
peranti / RDavidQuery.R
Created March 2, 2022 16:12 — forked from svigneau/RDavidQuery.R
This snippet illustrates how to query David from R, using the RDAVIDWebService package.
# This snippet illustrates how to query David from R, using the RDAVIDWebService package.
# Load RDAVIDWebService.
library("RDAVIDWebService")
# Create a DAVIDWebService object connected to David, using your registration email.
# To register, go to: http://david.abcc.ncifcrf.gov/content.jsp?file=WS.html.
david <- DAVIDWebService$new(email='[email protected]')
# Define foreground and background gene lists.
@peranti
peranti / software_for_scientists.md
Created August 7, 2020 11:33 — forked from stared/software_for_scientists.md
Software for scientists: community-edited list of general-purpose software for scientists.

Software for scientists

Some things takes much less time and stress once you know the right tool. Below, there is a community edited list of software for scientists.

Text editors

in General purpose text/code editors. It may be better to have a good editor for everything, than different ones for different languages, scripts, notes.

@peranti
peranti / list.md
Created February 27, 2020 15:49 — forked from ikirker/list.md
BioThings -- List of Languages and Whether There is a Bio-Lang Project

List of languages and whether there is a Bio- project

Language Bio-
C sort of
C++ Y
Python Y
Ruby Y
Java Y
Perl Y
import numpy as np
import matplotlib.pyplot as plt
###########################################################
# dates.txt is created by `git log | grep Date > dates.txt`
###########################################################
hours = []
with open("dates.txt") as f:
for line in f:
hours.append( int(line.rstrip().split()[4].split(":")[0]) )