Skip to content

Removes columns from a CSV file that are zero across all rows.

License

Notifications You must be signed in to change notification settings

movingpictures83/CSVFilter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CSVFilter

Language: Python

Input: TXT

Output: CSV (filtered data)

Tested with: PluMA 1.1, Python 3.6

Dependency: numpy==1.16.0

A PluMA plugin that accepts as input a TXT file of tab-delimited keyword-value pairs. Keywords:

csvfile: CSV file of data, where rows contain samples and columns represent variable values within those samples. threshold: Threshold percentage to keep (between 0 and 1)

Its output file will be the equivalent CSV file with all variables that have non-zero value across (threshold)% or less of the samples removed.

This is useful particularly when studying a subset of samples with a specific property.

About

Removes columns from a CSV file that are zero across all rows.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages