Coder Social home page Coder Social logo

derijkp / opentsv Goto Github PK

View Code? Open in Web Editor NEW
7.0 2.0 1.0 44.26 MB

Open tsv or csv files in Excel without conversions of values that look like dates or numbers

License: MIT License

Tcl 98.71% HTML 1.24% Shell 0.05%
excel windows biology bioinformatics tsv csv tab-separated comma-separated-values

opentsv's Introduction

Short description

When opening a comma or tab separated value file, Excel converts any data that looks like a date or a number to an internal (different) format, causing big problems when text data such as gene names (e.g. SEPT2), identifiers (1-2), ... are converted to Excel dates. This program opens tab-separated (tsv) or comma-separated (csv) files in Excel without this conversion/corruption of data.

Use

Download the binary opentsv release: opentsv Starting the downloaded program without a file gives you this settings/installation screen. This program does not have to be installed: You can use it directly by using the "Open file" or by dragging a file onto the exe. However, if you install it and/or register it as the default program to open tsv and csv files (bottom), its use becomes transparent: double clicking a tsv file will open it in Excel with the current settings.

In this settings screen you can also change the way opentsv handles separators and conversion methods used: from importing everything as text to opening the file in the default Excel style.

Longer description

Opentsv first scans a given file to detect the separator. It then opens Excel and forces it to load the file using the selected method, e.g. importing all columns as text, thus protecting your data from conversion. A file opened this way will be (by default) saved as a tab-separated file, even if the orignal was comma separated. If you need to save it as comma-separated, use "save as".

Opentsv will also solve the problem that for users in some locales using a decimal comma, Excel assumes a semicolon as the delimiter for csv files (contrary to rfc4180) and refuses to load properly formatted csv files (without changing the locale).

For opening csv files properly, a hack was needed: The parameters used for opening files with the extension .csv seem to be hard-coded in Excel: It does not honor any adapted parameters for conversion or separater if it has the extension csv. Therefore opentsv copies a .csv file first to a .tcsv file and opens that one instead.

Copyright (c) 2017 Peter De Rijk (VIB - University of Antwerp Center for Molecular Neurology) Available under MIT license

opentsv's People

Contributors

derijkp avatar svennd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

plh97

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.