Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tabtk cut: loss of empty columns #23

Closed
wouterg91 opened this issue Jan 29, 2014 · 1 comment
Closed

tabtk cut: loss of empty columns #23

wouterg91 opened this issue Jan 29, 2014 · 1 comment

Comments

@wouterg91
Copy link

When using tabtk cut for cutting and reordering columns, empty fields are lost and columns are shifted to the left in those rows that contain the empty fields.

the file I am using is an expression matrix, with in the first 2 rows sample identifiers, therefore no entry is present in the first field of those rows.
As simplified example I used following command:
startfile:
startfile

tabtk cut -r -f 1,5,2 startfile.txt > resultfile.txt

resultfile:
resultfile

As can be seen, the tab in the first column is lost. Adding TAB as delimiter option did not solve this problem.
This is the wanted result. For this case it is easy enough to manually edit the file, but in more complex files this is not possible.
wantedresult

@sjackman
Copy link

tabtk has moved to its own repository. https://github.com/lh3/tabtk

@lh3 lh3 closed this as completed Jun 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants