Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

swh:1:snp:7bb11892490e1dc1b1ff3be1d93f489dadb3e857
  • Code
  • Branches (1)
  • Releases (0)
    • Branches
    • Releases
    • HEAD
    • refs/heads/master
    No releases to show
  • 8306d99
  • /
  • test
  • /
  • example.m
Raw File Download
Permalinks

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
  • revision
  • snapshot
content badge Iframe embedding
swh:1:cnt:4677330d5198b56c520a52d209ba8df71fbf4cb7
directory badge Iframe embedding
swh:1:dir:892f10df507d1f9e5b4f08f94035d8aa1fa69841
revision badge
swh:1:rev:c5b693d0a66e83c9387433b33c0eab481bd4a763
snapshot badge
swh:1:snp:7bb11892490e1dc1b1ff3be1d93f489dadb3e857
Citations

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
  • revision
  • snapshot
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Tip revision: c5b693d0a66e83c9387433b33c0eab481bd4a763 authored by Wesley Tansey on 08 May 2020, 15:42:20 UTC
Fixed bug in easy that created too large a support for the alternative distribution
Tip revision: c5b693d
example.m
%Assume the step (1) in the section "Steps to implement the HMRF-based PLIS
%procedure" of "README.pdf" was done.
mex_setup();
input_info=[160,160,96,0.1];
reglocafile_56='loca_56.txt';
pvaluefile='pvalue_1vs2.txt';
output_signal_56='signals_BH_56.txt';
result=fdrBH95(input_info,reglocafile_56,pvaluefile,output_signal_56)

reglocafile_40='loca_40.txt';
output_signal_40='signals_BH_40.txt';
result=fdrBH95(input_info,reglocafile_40,pvaluefile,output_signal_40)

zvaluefile='zvalue_1vs2.txt';
L=2;

initials_56=initialvalue(output_signal_56,zvaluefile,reglocafile_56,L)
initials_40=initialvalue(output_signal_40,zvaluefile,reglocafile_40,L)


input_info=[160,160,96,2,1000,5000,1e6,5000];

output_estimate_56='estimate_result_56.txt';
output_LIS_56='LIS_56.txt';
output_process_56='process_output_56.txt';

output_estimate_40='estimate_result_40.txt';
output_LIS_40='LIS_40.txt';
output_process_40='process_output_40.txt';

computelis(input_info,initials_56,zvaluefile,reglocafile_56,output_estimate_56,output_LIS_56,output_process_56)
%It takes about 2.5 minutes run
computelis(input_info,initials_40,zvaluefile,reglocafile_40,output_estimate_40,output_LIS_40,output_process_40)
%It takes about 6.5 minutes to run
%In this example, you can run fdrplis without running computelis ahead, because all files
%needed to run fdrplis are areadly included in the folder. 

input_info=[160,160,96,1e-3];
reg_no=[40,56];
reglocafile='loca_';
LISfile='LIS_';
output_signal='signals_plis_40&56.txt';
output_LIS='LIS_40&56.txt';

result=fdrplis(input_info,reg_no,reglocafile,LISfile,output_signal,output_LIS)

Software Heritage — Copyright (C) 2015–2025, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Contact— JavaScript license information— Web API

back to top