tools
This commit is contained in:
@@ -101,6 +101,22 @@ def pfam(request):
|
||||
return JsonResponse(data)
|
||||
|
||||
|
||||
def fastqc(request):
|
||||
file = request.FILES.get("file", None)
|
||||
format = request.POST.get("format", None)
|
||||
if format is None:
|
||||
format = "fastq"
|
||||
|
||||
file_path, file_id = tools.path_out("chart")
|
||||
tools.keep_file(file, file_path)
|
||||
data = {"id": file_id}
|
||||
os.mkdir(f"{file_path[:-1]}")
|
||||
os.system(
|
||||
f"{tools.tools_path}/fastqc -o {file_path[:-1]} -f {format} {file_path}")
|
||||
os.system(f"7z a -t7z -r {file_id}.7z {file_path[:-1]}")
|
||||
return JsonResponse(data)
|
||||
|
||||
|
||||
def Differential_expression_analysis(request):
|
||||
if request.method == 'POST':
|
||||
files = request.FILES.getlist('files')
|
||||
|
||||
Reference in New Issue
Block a user