Skip to content

Instantly share code, notes, and snippets.

View jvfe's full-sized avatar
🐢
slow and steady...

João Cavalcante jvfe

🐢
slow and steady...
View GitHub Profile
@jvfe
jvfe / Nextflow_on_NPAD_UFRN.md
Last active May 28, 2024 17:14 — forked from iaradsouza1/Nextflow_on_NPAD_UFRN.md
Run Nextflow pipelines and RStudio at NPAD local cluster

This a basic guideline to set some basic configurations in order to run nextflow pipelines at the NPAD.

First, I'm assuming that your analysis will take more than 9 GB (your home quota), then you'll need to use the scratch disk to store the results and the singularity images.

0. Install conda and nf-core

Here I recomend to use conda to install the nextflow and nf-core.

Download and install conda: https://docs.conda.io/en/latest/miniconda.html

Install nf-core with conda: https://nf-co.re/docs/usage/installation#bioconda-installation

@jvfe
jvfe / get_covid_data_jhu.py
Last active November 14, 2021 00:05 — forked from fernandobarbalho/get_covid_data_jhu.r
Function to create COVID-19 dataset from JHU github
import pandas as pd
import datetime
def get_covid_data_jhu(dt_ini, dt_fim, us_columns = True, country = None):
date_range = pd.date_range(start = dt_ini, end = dt_fim).to_list()
string_range = [str(d.date().strftime("%m-%d-%Y")) for d in date_range]
full_data_list = []
for dat in string_range: