Skip to content

Instantly share code, notes, and snippets.

View cgpu's full-sized avatar
:octocat:

Christina Chatzipantsiou cgpu

:octocat:
View GitHub Profile
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
gs://cloudosinputdata/deploit/teams/5e601f9f786cca0107921955/users/5c066455e0744f007585e826/projects/5e820cb0bc45f60104372e9a/jobs/5e834f19e7d1990104cc0b89/results/results/archive/rmats-nf-5e7a5e66acc18a010404e673.tar.gz
gs://cloudosinputdata/deploit/teams/5e601f9f786cca0107921955/users/5c066455e0744f007585e826/projects/5e820cb0bc45f60104372e9a/jobs/5e8347d2e7d1990104cbe869/results/results/archive/rmats-nf-5e8191f740c6e21bfacdce70.tar.gz
batch-rmats-nf-5e8191f740c6e21bfacdce70 gs://cloudosinputdata/team/5e601f9f786cca0107921955/user/5e601f9f786cca0107921954/projects/5e7900c786fdca01036e78a9/jobs/5e8191f740c6e21bfacdce70/results/split_matrices.tar.gz
batch-rmats-nf-5e8191e7c1a31e1bf69b03dc gs://cloudosinputdata/team/5e601f9f786cca0107921955/user/5e601f9f786cca0107921954/projects/5e7900c786fdca01036e78a9/jobs/5e8191e7c1a31e1bf69b03dc/results/split_matrices.tar.gz
ID GeneID geneSymbol chr strand riExonStart_0base riExonEnd upstreamES upstreamEE downstreamES downstreamEE
@cgpu
cgpu / convert_from_to.R
Created March 20, 2020 20:05
Convert of occurences of pattern in dataframe cells to other pattern
# example dataframe
b <- structure(list(Sepal.Length = c("-", "-", "-", "4.6", "5", "5.4"
), Sepal.Width = c("3.5", "-", "-", "3.1", "3.6", "3.9"), Petal.Length = c("1.4",
"1.4", "-", "-", "1.4", "1.7"), Petal.Width = c(0.2, 0.2, 0.2,
0.2, 0.2, 0.4), Species = structure(c(1L, 1L, 1L, 1L, 1L, 1L), .Label = c("setosa",
"versicolor", "virginica"), class = "factor")), row.names = c(NA,
@cgpu
cgpu / grouped_bar_ggplot_tests_vs_confirmed_cases.R
Last active March 18, 2020 10:52
Grouped barplot for the countries were testing and confirmed cases are available.
# covid19 <- data.table::fread("https://covid.ourworldindata.org/data/full_data.csv")
# source: https://ourworldindata.org/coronavirus-source-data
# covid_test_coverage <- data.table::fread("covid-19-tests-country.csv")
# source: https://ourworldindata.org/coronavirus#current-covid-19-test-coverage-estimates
# total_confirmed_cases <- data.table::fread("total_cases.csv")
library(ggplot)
@cgpu
cgpu / papermill_python_api.py
Created March 1, 2020 22:44 — forked from GabrielSGoncalves/papermill_python_api.py
executing papermill using its Python API
import papermill as pm
pm.execute_notebook('weather_forecast_using_pyowm.ipynb',
'weather_forecast_using_pyowm_output.ipynb',
parameters={'city':'Sao Paulo,BR'},
kernel_name='papermill-tutorial')
Geographic_origin n Pop7Groups
Central_African_Republic 36 Africa
Nigeria 25 Africa
Senegal 24 Africa
Democratic_Republic_of_Congo 15 Africa
Kenya 12 Africa
South_Africa 8 Africa
Namibia 7 Africa
Mexico 50 America
Brazil 45 America
# print everything after loop is finished
for (i in 0:101) {
print(i)
Sys.sleep(0.01)
}
# simplist way to print within loop
for (i in 0:101) {
print(i)
Sys.sleep(0.01)
[ec2-user@ip-172-31-29-73 ~]$ df -h 
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        121G   68K  121G   1% /dev
tmpfs           121G     0  121G   0% /dev/shm
/dev/xvda1      5.3T  682G  4.7T  13% /
sudo nextflow run https://github.com/PGP-UK/GenomeChronicler-Sarek-nf \