Skip to content

Commit

Permalink
BUG: fix newline handling (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
ebolyen authored Jul 28, 2020
1 parent 1b0ad2b commit 66e6913
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion genome_sampler/plugin_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def _4(fmt: GISAIDDNAFASTAFormat) -> DNASequencesDirectoryFormat:

@plugin.register_transformer
def _5(fmt: VCFLikeMaskFormat) -> pd.DataFrame:
with io.StringIO(''.join(fmt.to_list())) as fh:
with io.StringIO('\n'.join(fmt.to_list())) as fh:
df = pd.read_csv(fh, sep='\t')
df = df.rename(columns={'#CHROM': 'CHROM'})
return df
Expand Down

0 comments on commit 66e6913

Please sign in to comment.