This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from transformers import pipeline | |
with open("/home/arteaga/prot/scripts/input_denovo_multiple.txt", "r") as f: | |
for line in f: | |
secuencia = [] | |
protgpt2 = pipeline('text-generation', model="/home/arteaga/prot/data/finetuned") | |
sequences = protgpt2(line, max_length=50, min_length = 0, do_sample=True, top_k=950, repetition_penalty=1.2, num_return_sequences=10, eos_token_id=0) | |
with open("/home/arteaga/prot/scripts/output_denovo_multiple.txt", "w") as wf: | |
for seq in sequences: | |
wf.write(seq) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package biojava.biojava_project; | |
import java.io.BufferedReader; | |
import java.io.File; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.io.PrintStream; | |
import java.net.HttpURLConnection; | |
import java.net.URL; | |
import java.util.LinkedHashMap; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package automat; | |
import java.util.Random; | |
public class Cell { | |
public char cell_type; // attribute | |
public static void main(String[] args) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def extract_proteinid(description): | |
splitted = description.split(" ") | |
for feature in splitted: | |
if "protein_id" in feature: | |
print(feature.split("=")[1][:-1]) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#programa para imprimir los números pares del 1 al 100 (Este) | |
for n in range(1,101): | |
if n % 2 == 0: | |
print(n) | |
#Programa de la sumatoria de un numermo (Fibonacci) | |
numero = int(input("Ingrese un numero para calcular su sumatoria:")) | |
a = 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
numpy.set_printoptions(suppress=True) | |
def aceleracion(velocidad): | |
return (3-(0.000062*(velocidad**2))) | |
def velocidad(tiempo): | |
return (0.00001*(tiempo**3) - 0.00488*(tiempo**2) + 0.75795*tiempo + 181.3566) | |
def datos_velocidad_turbohelice(incremento): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var myOptions = { | |
"nativeControlsForTouch": false, | |
controls: true, | |
autoplay: true, | |
width: "640", | |
height: "400", | |
} | |
myPlayer = amp("azuremediaplayer", myOptions); | |
myPlayer.src([ | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<video id="azuremediaplayer" class="azuremediaplayer amp-default-skin amp-big-play-centered" tabindex="0"></video> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link href="//amp.azure.net/libs/amp/2.2.2/skins/amp-default/azuremediaplayer.min.css" rel="stylesheet"> | |
<script src="//amp.azure.net/libs/amp/2.2.2/azuremediaplayer.min.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import csv | |
import os | |
import numpy as np | |
import matplotlib.pyplot as plt | |
class CsvHandler(): | |
file_route = None |
NewerOlder