987241ea99c99b93aea51bb63bdf579f927e9d2b kent Wed Oct 7 13:46:09 2015 -0700 Fixing copyright on some old essentially public domain files. diff --git src/inc/gdf.h src/inc/gdf.h index 07380df..2aae163 100644 --- src/inc/gdf.h +++ src/inc/gdf.h @@ -1,61 +1,60 @@ -/***************************************************************************** - * Copyright (C) 2000 Jim Kent. This source code may be freely used * - * for personal, academic, and non-profit purposes. Commercial use * - * permitted only by explicit agreement with Jim Kent (jim_kent@pacbell.net) * - *****************************************************************************/ -/* gdf - Intronerator Gene Description File. */ +/* gdf - Intronerator Gene Description File. + * + * This file is copyright 2000 Jim Kent, but license is hereby + * granted for all use - public, private or commercial. */ + #ifndef GDF_H #define GDF_H #ifndef DNAUTIL_H #include "dnautil.h" #endif struct gdfDataPoint /* This stores data at each exon/intron boundary. */ { int start; }; struct gdfGene /* One structure of these for each gene (each isoform of each gene * actually. */ { struct gdfGene *next; char *name; int dataCount; struct gdfDataPoint *dataPoints; char strand; UBYTE chromIx; }; struct gdfGene *newGdfGene(char *name, int nameSize, int exonCount, char strand, UBYTE chromIx); /* Return a new gene. */ void gdfFreeGene(struct gdfGene *gene); /* Free a gene. */ void gdfFreeGeneList(struct gdfGene **pList); /* Free a whole list of genes. */ struct gdfGene *gdfReadOneGene(FILE *f); /* Read one entry from a Gdf file. Assumes that the file pointer * is in the right place. */ void gdfGeneExtents(struct gdfGene *gene, long *pMin, long *pMax); /* Figure out first and last base in gene. */ void gdfOffsetGene(struct gdfGene *gene, int offset); /* Add offset to each point in gene */ void gdfRcGene(struct gdfGene *gene, int size); /* Flip gene to other strand. Assumes dataPoints are already * moved into range from 0-size */ void gdfUpcExons(struct gdfGene *gene, int geneOffset, DNA *dna, int dnaSize, int dnaOffset); /* Uppercase exons in DNA. */ #endif /* GDF_H */