Esempio n. 1
0
void hgLoadOutJoined(char *database, int rmskCount, char *rmskFileNames[], char *suffix)
/* hgLoadOutJoined - load RepeatMasker .out files into database. */
{
struct sqlConnection *conn = NULL;
int i;

if (tabFileName == NULL)
    {
    conn = hAllocConn(database);
    verbose(2,"#\thgLoadOutJoined: connected to database: %s\n", database);
    }
for (i=0; i<rmskCount; ++i)
    {
    readOneOut(rmskFileNames[i]);
    }
closeFiles();
if (tabFileName == NULL)
    {
    loadOneTable(database, conn, defaultTempName, suffix);
    }
hFreeConn(&conn);
if (badRepCnt > 0)
    {
    warn("note: %d records dropped due to repEnd < 0 or repStart > repEnd\n", badRepCnt);
    if (verboseLevel() < 2)
        warn("      run with -verbose=2 for details\n");
    }
}
Esempio n. 2
0
void CQUpdatesWidget::loadWidget()
{

  assert(CCopasiRootContainer::getDatamodelList()->size() > 0);
  CModel* pModel = (*CCopasiRootContainer::getDatamodelList())[0]->getModel();

  if (!pModel) return;

  pModel->compileIfNecessary(NULL);
  mRefreshsMap.clear();
  fillRefreshsMapRecursively(pModel);

  loadOneTable(mpTable0, pModel->getListOfInitialRefreshes());
  loadOneTable(mpTable1, pModel->getListOfConstantRefreshes());
  loadOneTable(mpTable2, pModel->getListOfSimulatedRefreshes());
  loadOneTable(mpTable3, pModel->getListOfNonSimulatedRefreshes());

  loadObjectsTable(pModel);
}
Esempio n. 3
0
void loadOneSplitTable(struct hashEl *hel)
/* Load the table for the given chrom. */
{
    char tempName[512];
    char tableName[256];
    char *chrom = hel->name;
    safef(tempName, sizeof(tempName), "%s_%s", chrom, defaultTempName);
    safef(tableName, sizeof(tableName), "%s_%s", chrom, suffix);
    loadOneTable(sqlGetDatabase(theConn), theConn, tempName, tableName);
}
Esempio n. 4
0
void processOneOut(char *database, struct sqlConnection *conn, char *rmskFile, char *suffix)
/* Read one RepeatMasker .out file and load it into database. */
{
verbose(1, "Processing %s\n", rmskFile);

readOneOut(rmskFile);

/* Create database table (if not -tabFile). */
if (tabFileName == NULL)
    {
    char dir[256], base[128], extension[64];
    char tableName[256];
    splitPath(rmskFile, dir, base, extension);
    chopSuffix(base);
    safef(tableName, sizeof(tableName), "%s_%s", base, suffix);
    closeFiles();
    loadOneTable(database, conn, defaultTempName, tableName);
    }
}