Get_card¶
-
NetExplorer.views.http_api.plannet.get_card.
get_card
(request, symbol=None, database=None)¶ Returns a card with information about a human gene, a planarian gene or a planarian contig.
- Accepts:
GET
GET + AJAX
- Parameters
symbol (str) – Identifier of entity for which to generate card.
database (str) – Database of symbol.
- Response:
- GET:
node (
Smesgene
orHuman
orPlanarianContig
): Instance of card element.transcripts (list of
PlanarianContig
): List of contigs associated with gene (only forPlanarianGene
)best_transcript (
PlanarianContig
): Best planarian contig for gene (only forPlanarianGene
)json_graph (str): Interaction graph of predicted interactions in JSON format (only for
PlanarianGene
orPlanarianContig
).homologs (list of tuple): Homologous
PlanarianContig
s for Human gene. First element is Database name, second isPlanarianContig
object (only forHuman
).domains (str): PFAM domains in JSON format (only for
PlanarianContig
).
- GET + AJAX:
HttpResponse: Response with a file.
Example
curl -H "X-REQUESTED-WITH: XMLHttpRequest" \ -H "Content-Type: application/json" \ -X GET \ "https://compgen.bio.ub.edu/PlanNET/info_card?target=SMESG000005930.1&targetDB=Smesgene"