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

get_type #92

Open
fafa13 opened this issue Jan 9, 2019 · 0 comments
Open

get_type #92

fafa13 opened this issue Jan 9, 2019 · 0 comments

Comments

@fafa13
Copy link
Collaborator

fafa13 commented Jan 9, 2019

Hello,
the "get_type" function has been pushed in "develop" branch. This function return the type of a column or an attribute. This function takes 3 parameters :

  • GTF_DATA *gtf_data : the GTF data
  • char *key : the attribute or column name for which to get the type
  • int ignore_undef : 0 or 1. If 1, "?" and "." values are ignored.

The return value can be :

  • 1 : integer
  • 2 : float
  • 3 : boolean (0/1 values)
  • 4 : character
  • 5 : string
  • 100 : inconsistent
  • 0 : unknown ("." values)
  • -1 : unavailable ("?" values)
  • -2 : irregular (empty values)

Let me know if it works and if you need more !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant