Beispiel #1
0
 def getRnaQuantificationById(self, rnaQuantificationId):
     """
     :param rnaQuantificationId: the RNA Quantification ID
     :return: dictionary representing an RnaQuantification object,
         or None if no match is found.
     """
     sql = ("SELECT * FROM RnaQuantification WHERE id = ?")
     query = self._dbconn.execute(sql, (rnaQuantificationId, ))
     try:
         return sqlite_backend.fetchOne(query)
     except AttributeError:
         raise exceptions.RnaQuantificationNotFoundException(
             rnaQuantificationId)
Beispiel #2
0
 def searchRnaQuantificationsInDb(self, rnaQuantificationId=""):
     """
     :param rnaQuantificationId: string restrict search by id
     :return an array of dictionaries, representing the returned data.
     """
     sql = ("SELECT * FROM RnaQuantification")
     sql_args = ()
     if len(rnaQuantificationId) > 0:
         sql += " WHERE id = ? "
         sql_args += (rnaQuantificationId, )
     query = self._dbconn.execute(sql, sql_args)
     try:
         return sqlite_backend.iterativeFetch(query)
     except AttributeError:
         raise exceptions.RnaQuantificationNotFoundException(
             rnaQuantificationId)
Beispiel #3
0
 def getRnaQuantification(self, rnaQuantificationId):
     try:
         return self._rnaQuantificationIdMap[rnaQuantificationId]
     except KeyError:
         raise exceptions.RnaQuantificationNotFoundException(
             rnaQuantificationId)