Skip to content

Instantly share code, notes, and snippets.

@monogenea
Last active October 10, 2020 13:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save monogenea/0107bccd1edf4104af958db498c39e2b to your computer and use it in GitHub Desktop.
Save monogenea/0107bccd1edf4104af958db498c39e2b to your computer and use it in GitHub Desktop.
# Check first five columns in matrix.csv
#!cut -d, -f-5 matrix.csv | head
# Import data with Bash command discarding first column
matrix = dt.fread(cmd='cut -d, -f2- matrix.csv',
header=True, sep=',', columns=dt.int32) # ~7 GB (76533, 50281)
# Import metadata
metadata = pd.read_csv('metadata.csv')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment